📅  最后修改于: 2022-03-11 14:46:39.847000             🧑  作者: Mango
# How to loop for every month in a range of years
for i in range(120): #(120 months in 10 years)
print(date(2000 + i//12, i%12 + 1, 1))