摘要: import structimport base64import itertoolsimport chardetfrom collections import namedtuple,defaultdict,OrderedDict,Counter # namedtuple 新建1个元组,并设置元素的属 阅读全文
posted @ 2018-12-08 22:37 新美好时代 阅读(160) 评论(0) 推荐(0) 编辑
摘要: #生成re对象 compile# 之后再期调用 match search 返回匹配到的字符串# findall 返回匹配结果的列表#如果要对匹配的结果进行分组,可加(),并可通过\数字 去应用 阅读全文
posted @ 2018-12-08 20:37 新美好时代 阅读(133) 评论(0) 推荐(0) 编辑