摘要: # 检验是否全是中文字符 def is_all_chinese(strs): for _char in strs: if not '\u4e00' <= _char <= '\u9fa5': return False return True # 检验是否含有中文字符 def is_contains_ 阅读全文
posted @ 2021-08-31 10:24 WIN&迷失 阅读(308) 评论(0) 推荐(0) 编辑
摘要: 安装模块 pip install configobj 测试用配置文件内容: [DEFAULT] appid = appkey = 读取配置文件 from configobj import ConfigObj config = ConfigObj("config.ini", encoding='utf 阅读全文
posted @ 2021-08-31 00:59 WIN&迷失 阅读(697) 评论(0) 推荐(0) 编辑