如题所述
第1个回答 2021-04-17
import calendar
years = filter(calendar.isleap, range(2000, 2021))
print(list(years))
years = filter(calendar.isleap, range(2000, 2021))
print(list(years))
第2个回答 2021-07-05
for i in range(2000, 2020):
k = i
if k % 4 == 0:
print(k)
k = i
if k % 4 == 0:
print(k)