python中如何比较两个时间点?下面给大家讲解一下具体步骤:
1.string转datetime
#字符串转datetime dt = datetime.datetime.strptime('2017-04-19 00:42:44','%Y-%m-%d %H:%M:%S')