# -*- coding: UTF-8 -*-
from datetime import datetime
dates = datetime.strptime('2020-03-09T00:00:00.000Z', "%Y-%m-%dT%H:%M:%S.%fZ")
print(dates)
打印结果:2020-03-09 00:00:00
# -*- coding: UTF-8 -*-
from datetime import datetime
dates = datetime.strptime('2020-03-09T00:00:00.000Z', "%Y-%m-%dT%H:%M:%S.%fZ")
print(dates)
打印结果:2020-03-09 00:00:00