摘要: 匹配模式 从字符串中全部查找内容,返回一个列表 import re s = "hello_宇霖_hello" print(re.findall("hello", s)) \w 查找字母(包含中文)或数字或下划线 import re s = "hello_宇霖_hello" print(re.find 阅读全文
posted @ 2020-11-02 08:50 Ylinn 阅读(194) 评论(0) 推荐(0)