from datetime import datetime
start = datetime.strptime('2017-09-01 10:10:00', '%Y-%m-%d %H:%M:%S')
end = datetime.strptime('2017-09-01 10:10:11', '%Y-%m-%d %H:%M:%S')
print (end-start).seconds
python计算时间差
最新推荐文章于 2023-09-28 16:55:01 发布