![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python类
udehi168
这个作者很懒,什么都没留下…
展开
-
python的open模式
python的open打开模式原创 2022-12-28 15:49:13 · 85 阅读 · 1 评论 -
Python 封装使用日志处理类
在logging的基础上封装一个简易的日志处理类,同时输出到日志文件和打印到屏幕 #coding=utf-8 import logging import logging.handlers class Log: __file = 'log.log'#日志文件名称 __handler = False __fmt = '%(asctime)s - %(filename)s:[line:%(lineno)s] - %(name)s - %(message)s'#输出格式 de.转载 2021-01-19 18:59:40 · 228 阅读 · 1 评论