05 2021 档案

Deccoration Concepts
摘要:Living room 阅读全文

posted @ 2021-05-16 21:03 BionExit 阅读(29) 评论(0) 推荐(0)

Python Logger类,保存本地文件并在console打印
摘要:import logging import time import os class Logger: def __init__(self, logger_name): # 创建一个logger self.logger = logging.getLogger(logger_name) self.log 阅读全文

posted @ 2021-05-15 20:44 BionExit 阅读(497) 评论(0) 推荐(0)

Python 通过Request上传(form-data Multipart)\下载文件
摘要:下载文件 import os import requests base_dir = os.path.abspath(os.path.dirname(__file__)) file_path = os.path.join(base_dir, 'FileDownload', time.strftime( 阅读全文

posted @ 2021-05-15 20:20 BionExit 阅读(902) 评论(0) 推荐(0)

正则表达式
摘要:(?<=成交金额:)(\d+)(,\d+)*\.*(\d)*(?=\元) 352,000 [1-9]\d*.\d*|0.\d*[1-9]\d* 352,000 [\u4e00-\u9fa5]*$ 元 [\u4e00-\u9fa5]{2,} 中标金额 天津市第二人民医院医疗设备项目(项目编号:TGPC 阅读全文

posted @ 2021-05-10 11:08 BionExit 阅读(38) 评论(0) 推荐(0)

解决 no module name _sqllite3 手动卸载python并更新
摘要:yum install sqlite-devel rpm -qa|grep python|xargs rpm -ev --allmatches --nodeps whereis python |xargs rm -frv whereis python cd /home/source wget htt 阅读全文

posted @ 2021-05-07 02:34 BionExit 阅读(70) 评论(0) 推荐(0)

python通过递归清除字典中value为特定值的key
摘要:输入dict person = {'a': {'age': 43, 'addr': ''}, 'b': {'age': 0, 'addr': 'China', 'd': {'age': 43, 'addr': ''}}, 'c': {'age': 0, 'addr': None}} 代码 _filt 阅读全文

posted @ 2021-05-05 01:20 BionExit 阅读(408) 评论(0) 推荐(0)

python通过递归将多维字典转化为二维
摘要:输入多维字典 person = {"male":{"name":"Shawn"}, "female":{"name":"Betty","age":[{"aaaa":123},{"bbbb":234}]},"children":{"name":{"first_name":"李", "last_name 阅读全文

posted @ 2021-05-04 21:35 BionExit 阅读(372) 评论(0) 推荐(0)

导航