摘要: Python正则表达式篇课后习题 1-1. 识别下列字符串:“bat,” “bit,” “but,” “hat,” “hit,” 或 “hut” import re data = 'bat bit btt a ta tib atb but hat hit hut' patt = '[bh][aiu]t' m = re.findall(patt,data) print(m) 1-2.匹配用一... 阅读全文
posted @ 2019-08-22 13:57 爱学习的小猫咪 阅读(251) 评论(0) 推荐(0) 编辑