Python去除String中的空格/换行/回车等
join:在序列中添加元素
split: 将字符串分解成序列
两者为互逆方法
s = "as, asdas \r\nasda" print s.split();# result: ['as,', 'asdas', 'asda'] print "".join(s.split());# result: as,asdasasda l = "".join(s.split()).split(','); print l;# result: ['as', 'asdasasda']