摘要: 1. 使用find()方法 >>> text = 'yeah, but no, but yeah, but no, but yeah' >>> text.find('no')10 2. 使用re.match() 对于复杂的匹配需要使用正则表达式和re 模块。为了解释正则表达式的基本原理,假设想匹配数 阅读全文
posted @ 2018-02-12 12:14 筱筱的春天 阅读(883) 评论(0) 推荐(0)