python清除字符串中间空格的方法| join()方法

s = ''.join(a.split())

join方法:

 

 

参考链接:https://www.runoob.com/python3/python3-string-join.html

posted @ 2020-05-13 17:11  Y鱼鱼鱼Y  阅读(720)  评论(0)    收藏  举报