Demo entry 6865193

测试数据水电费水电费水电费

   

Submitted by anonymous on Aug 14, 2019 at 05:26
Language: Python 3. Code size: 163 Bytes.

year = int(input('请输入一个任意的年份:'))
# 检查这个年份是否是闰年 
if year % 4 == 0 and year % 100 != 0 or year % 400 == 0 : 
    print(year,'是闰年') 
else :
    print(year,'是平年')

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).