摘要: rstrip() 删除末尾的空白 lstrip() 删除头部的空白 strip() 删除字符串两端的空白 strip lstrip rstrip使用方法 Python中的strip用于去除字符串的首位字符,同理,lstrip用于去除左边 的字符,rstrip用于去除右边的字符。这三个函数都可传入一个 阅读全文
posted @ 2018-04-19 19:12 coder-2017 阅读(107) 评论(0) 推荐(0)