1 import datetime,time 2 dtstr = '2014-02-14 21:32:12' 3 a = datetime.datetime.strptime(dtstr, "%Y-%m-%d %H:%M:%S") 4 print a.date() // 日期 5 print a.time() // 时间 6 b = time.mktime(a.tim... Read More
posted @ 2016-03-22 14:14 你好阿汤哥 Views(206) Comments(0) Diggs(0) Edit