摘要: 简介 collections是Python内建的一个集合模块,其中提供了许多有用的集合类。 注意:使用这些类的时候要先从collections模块导入 from collections import XXX namedtuple 一个点的二维坐标可以表示为: p=(1,2) 但是,看到(1,2),很 阅读全文
posted @ 2020-10-08 23:07 ShineLe 阅读(86) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2020-10-08 23:01 ShineLe 阅读(612) 评论(0) 推荐(0)
摘要: 正则函数 match、search、findall、finditer、split、sub 返回一个对象:match、search、finditer 返回一个列表:findall、split 其中match、search与findall都有两个匹配方式:简单匹配和分组匹配 1、match 格式 mat 阅读全文
posted @ 2020-10-08 00:00 ShineLe 阅读(325) 评论(0) 推荐(0)