tks for all attentions!
I find out solution
from datetime import datetime
from dateutil import parser
def get(date):
date = [parser.parse(i) for i in date]
return date
get(['2022-01-20T00:00:00.000Z' , '2022-02-21T00:00:00.000Z','2022-04-20T00:00:00.000Z'])
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.