随笔分类 -  python-模块

模块集合
摘要:import pypinyin from pypinyin import Style operator = pypinyin.slug(''.join(infos.get('你好')), separator='') # nihao 阅读全文
posted @ 2021-01-25 16:48 sihte 阅读(89) 评论(0) 推荐(0)
摘要:所需模块 from collections.abc import Iterable 函数 def pingpu(x): def flat_gen(x): def iselement(e): return not (isinstance(e, Iterable) and not isinstance( 阅读全文
posted @ 2020-08-05 17:04 sihte 阅读(123) 评论(0) 推荐(0)
摘要:作用: 此模块的主要作用是文件名称的匹配 | 字符 | 含义 | | | | | * | 匹配多个字符 | | ? | 匹配单个字符 | | [seq] | 匹配指定范围内字符 | | [!seq] | 匹配不在指定范围内的字符 | 使用: 1、集合os模块,匹配文件名 通过fnmatch模块,获取 阅读全文
posted @ 2020-07-06 18:29 sihte 阅读(128) 评论(0) 推荐(0)