python字符串与时间互相转换
【个人笔记】(1) 区分:strptime、strftimea="04/12/2014 06:08:55"a1 = datetime.datetime.strptime(a,"%d/%m/%Y %H:%M:%S") # 将字符串a转化为datetime,用的是strptimea2 = datetime.datetime.strftime(a1,'%Y-%m-%d %H:...