>>> s = '2019-05-09 18:18:16'
>>> datetime.datetime.strptime(s, "%Y-%m-%d %H:%M:%S")
datetime.datetime(2019, 5, 9, 18, 18, 16)
关注公众号「Python之禅」,回复「1024」免费获取Python资源
>>> s = '2019-05-09 18:18:16'
>>> datetime.datetime.strptime(s, "%Y-%m-%d %H:%M:%S")
datetime.datetime(2019, 5, 9, 18, 18, 16)
关注公众号「Python之禅」,回复「1024」免费获取Python资源