求解,python大神求解,急求
发布网友
发布时间:2024-10-11 01:55
我来回答
共1个回答
热心网友
时间:2024-11-05 13:08
year=int(input("请输入年:"))
if (year%100==0 and year%400==0) or (year%100 != 0 and year%4==0):
print("是闰年")
else:
print("不是闰年")
count=0;
for i in range(1,201):
if i%3==0:
print(i,end=' ')
count +=1
if count == 5:
print(end='\n')
count = 0