Commit ba2d0aa9 by BellCodeEditor

auto save

parent 8a6b4a9c
Showing with 26 additions and 0 deletions
while True:
year = int(input("输入一个年份:"))
if (year%4)==0:
if (year%100)==0:
if (year%400)==0:
print("是闰年")
else:
print("不是闰年")
else:
print("是闰年")
else:
print("不是闰年")
\ No newline at end of file
while True:
year = int(input("输入一个年份"))
if (year%4)==0:
if (year%100)==0:
if (year%400)==0:
print("是闰年")
else:
print("不是闰年")
else:
print("是闰年")
else:
print("不是闰年")
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment