摘要: #写日志,需要导入jnz给的nnlog包import nnlog log = nnlog.Logger('my.log',backCount=3,when='S',level='debug') #my.log日志文件名 #backCount 保存几份日志,默认值5,达到5个日志文件后,新增日志,并删除之前的 #level 日志级别,默认debug #when 每隔多少时间生成一个日志文件,‘S’... 阅读全文
posted @ 2018-10-23 15:35 A_Life 阅读(325) 评论(0) 推荐(0) 编辑
摘要: # #写excel # import xlwt # # book = xlwt.Workbook() # sheet = book.add_sheet('xuesheng') # all_data = [ # ['id','name','sex','phone','country'], # ['1','xiaoming','男',13111111111,'china'], # ... 阅读全文
posted @ 2018-10-23 15:31 A_Life 阅读(312) 评论(0) 推荐(0) 编辑
摘要: string类型写redis 哈希类型写redis 阅读全文
posted @ 2018-10-23 15:29 A_Life 阅读(1262) 评论(0) 推荐(0) 编辑