datestrs=['7/6/2011','8/6/2011']
date_datetime = [datetime.strptime(x,'%m/%d/%Y') for x in datestrs]
字符串列表转化为日期
最新推荐文章于 2020-12-15 22:39:18 发布
datestrs=['7/6/2011','8/6/2011']
date_datetime = [datetime.strptime(x,'%m/%d/%Y') for x in datestrs]