📜  python 日期时间列表作为类型字符串 - Python 代码示例

📅  最后修改于: 2022-03-11 14:46:29.975000             🧑  作者: Mango

代码示例1
mondays =[datetime.date(2019, 2, 14), datetime.date(2019, 2, 21)]
[date_obj.strftime('%Y%m%d') for date_obj in mondays]
# Output:
['20190214', '20190221']