会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
江渚渔樵上
博客园
首页
新随笔
联系
订阅
管理
2018年4月25日
打印日志的方法
摘要: import time def logger(): time_format = '%Y-%m-%d %X' #时间的一个格式 time_current = time.strftime(time_format) #strftime()函数接收以时间元组,并返回以可读字符串表示的当地时间 with open('a.txt','a+') as f: f...
阅读全文
posted @ 2018-04-25 09:06 江渚渔樵上
阅读(197)
评论(0)
推荐(0)
编辑
公告