neversoft 发表于 2017-5-8 12:00:46

python 去除空格,回车符,换行符

  s=’   as asdas \r\nasda’
print ”.join(s.split())
  很简单~~
页: [1]
查看完整版本: python 去除空格,回车符,换行符