用python语言求时间差
2017-03-12
阅读 1 分钟
2.1kimport datetimet1=datetime.datetime.strptime('2017-03-06 23:10:00','%Y-%m-%d %H:%M:%S')t2=datetime.datetime.now()print t2print t2-t1结果runfile('E:/python training/timedifference1.py', wdir='E:/python training')2017-03-07 23:26:04.2770001 day, 0:16:04.277000注:python语言和其他c或者java类语言不同...