Python如何去掉字符串‘\xa0’

s = '09月27日\xa0发布'
s = "".join(s.split())
print(s)

结果如下:
09月27日发布

posted @ 2019-08-08 18:06  hank-li  阅读(4101)  评论(0编辑  收藏  举报