最近用到python读取Excel表时,须要去除空格 回车 换行 浪费了大量时间,用各类循环来一个个的python
删,最后在网上找到了一个特别简单的东西,因此记录下来,以备查看code
s=" as asdas \r\nasda" print ("".join(s.split()))