05 2021 档案

Deccoration Concepts
摘要:Living room 阅读全文

posted @ 2021-05-16 21:03 BionExit 阅读(24) 评论(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 阅读(484) 评论(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 阅读(857) 评论(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 阅读(22) 评论(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 阅读(62) 评论(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 阅读(389) 评论(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 阅读(351) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示