The method strip() returns a copy of the string in which all chars have been stripped from the beginning and the end of the string (default whitespace characters).
在string中删掉strip(char)的所有char字符。
str.strip([chars])
chars -- The characters to be removed from beginning or end of the string.
This method returns a copy of the string in which all chars have been stripped from the beginning and the end of the string.
str = ‘1111234 adad‘; print str.strip(‘1‘);
Result: 234 adad
[Python] String strip() Method
原文:http://www.cnblogs.com/KennyRom/p/6607216.html