【Python学习笔记】输出现在的时间

print time.strftime('%Y-%m-%d %H:%M:%S',time.localtime(time.time()))

2016-01-27 21:40:25

 

posted @ 2016-01-27 21:42  龟窝  阅读(129)  评论(0编辑  收藏  举报