摘要: datetime是个很常用的模块,这个连python初学者都应该知道,datetime中有两个函数:strftime和strptime,里面都有个参数format,可以将输出的时间格式化。例如 print datetime.datetime.now().strftime("%Y.%m.%d") 就会 阅读全文
posted @ 2016-09-06 16:55 _小苹果 阅读(2806) 评论(0) 推荐(0) 编辑