2019年8月31日

使用logging模块日志开发

摘要: 1 import logging 2 import os 3 4 # 设置一个存放日志文件的路径 5 BASE_DIR=os.path.dirname(__file__) 6 log_dir=r'%s\%s' %(BASE_DIR,'log') 7 all_log_path = r'%s\%s\%s 阅读全文

posted @ 2019-08-31 18:53 昵称不能重复 阅读(103) 评论(0) 推荐(0)

2018年8月6日

第三方模块

摘要: 一 time与datetime模块 时间戳(timestamp):通常来说,时间戳表示的是当前时间减去1970年1月1日00:00:00的秒数。 结构化的时间(struct_time):struct_time元组共有9个元素共九个元素:(年,月,日,时,分,秒,一年中第几周,一年中第几天,夏令时) 阅读全文

posted @ 2018-08-06 15:43 昵称不能重复 阅读(140) 评论(0) 推荐(0)

导航