正则表达式去空白字符

1、用正则表达式将空格去掉:re.sub(r"s","",str)   #s表示空白字符,""表示要替换成的空白字符,str表示一个语句。

2、

原文地址:https://www.cnblogs.com/qiaoer1993/p/10506059.html