📜  do while python using dates - Python 代码示例

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

代码示例1
start_date = datetime.date(2020, 1, 1)
end_date = datetime.date(2020, 1, 4)
delta = datetimetimedelta(days=1)
while start_date <= end_date:
print(start_date)
start_date += delta