1.re正则 import re print(re.findall("\w","内容")) findall 返回的是列表 \w 匹配字母,数字,下划线,中文 \W 匹配不是字母,数字,下划线,中文 \d 匹配数字 \D 匹配非数字 ^(\A) 匹配以什么开头 $ (\Z) 匹配以什么结尾 .(点) Read More
posted @ 2019-08-31 10:48 terms Views(103) Comments(0) Diggs(0)