摘要: 一.strip() strip用于字符串头部和尾部的指定字符串,默认为空格或换行符。 比如我们有字符串: str="123123\n" 我们使用strip方法:: str.strip() 因此将会输出: 'asdasdasd' 我们可以看到尾部的换行符被删去了,现在我们来删除自己所指定的字符串,首先 阅读全文
posted @ 2020-06-05 15:51 Geeksongs 阅读(2750) 评论(0) 推荐(0) 编辑

Coded by Geeksongs on Linux

All rights reserved, no one is allowed to pirate or use the document for other purposes.