去掉字符串空格可以使用strip等方法去掉字符串首尾空格>>> s = " xiao fang " >>> s.strip() 'xiao fang' 去掉左侧空格>>> s.lstrip() 'xiao fang ...
確定! 回上一頁