摘要: 正则表达式 :regular expression 用法:对字符串进行模式匹配 1,对常量字符串(普通字符)进行匹配 2,对元字符 进行匹配 s = 'pyhton1C#22python1C#5pythonn2C#123' res = re.findall('\d',s) print(res) #[ 阅读全文
posted @ 2018-05-11 22:53 Yellow_huang 阅读(123) 评论(0) 推荐(0) 编辑