摘要: 一、strip()、replace()、re.sub()用法 1.strip() 对于这个函数要记住3点: 1) 默认删除行首或者行尾的空白符(包括'\n', '\r', '\t', ' ') 2)能使用,分隔去除多个值 3)lstrip()表示删除左边的,rstrip()表示删除右边的 2.rep 阅读全文
posted @ 2019-04-28 11:22 沫小豪 阅读(211) 评论(0) 推荐(0) 编辑