python日期格式化

print(time.strftime("%Y%m%d%H%M%S", time.localtime()))
或者

print (time.strftime("%Y%m%d%H%M%S"))


得到:
20141223100840
posted @ 2014-12-23 10:16  稻草人.cn  阅读(311)  评论(0编辑  收藏  举报