linux系统函数 监测系统参数用的

strip():数组 Python中的strip用于去除字符串的首位字符,同理,lstrip用于去除左边的字符,rstrip用于去除右边的字符。这三个函数均可传入一个参数,指定要去除的首尾字符。函数 代码以下: theString = 'saaaay yes no yaaaass' print theString.strip('say') spa theString依次被去除首尾在['s','a'
相关文章
相关标签/搜索