摘要: datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S") datetime.datetime.now().strftime("%Y-%m-%d %X") 结果一样为:2016-03-01 14:01:01 格式化之后,就得到了我们常见的格式了。 附: 阅读全文
posted @ 2016-03-01 00:06 编程青年的崛起 阅读(3033) 评论(0) 推荐(0) 编辑