默认情况下,这些方法会去除空白字符,但是你也可以指定其他字符。比如:. >>> # Whitespace stripping >>> s = ' hello world \n' >>> s.strip() 'hello world' > ...
確定! 回上一頁