python日期格式化 print(time.strftime("%Y%m%d%H%M%S", time.localtime()))或者print (time.strftime("%Y%m%d%H%M%S")) 得到:20141223100840