python十种日期格式_Python日期格式转换
字符串日期转为datetime类型import datetimetime = '1994-01-19 00:00:00'time = datetime.datetime.strptime(time,'%Y-%m-%d %H:%M:%S')print(time,type(time))输出结果:1994-01-19 00:00:00 datetime类型转为字符串类型import datetimet...