python .strip()

s=' abcd '

s.lstrip()

s.rstrip()

s.strip()

  只能去除两边的空格或者‘\n’

posted @ 2017-01-25 22:21  ezway  阅读(151)  评论(0)    收藏  举报