big = [1,3,5,7,8,10,12]
small =[4,6,9,11]
month = 5
day = 4
sum = 0
for index in range(1,month):
if month in big:
sum += 31
elif month in small:
sum += 30
elif month == 2:
sum += 29
print('这是2000年第[%s]天!',sum+day)
2018年第九届蓝桥杯 - 省赛 - C/C++大学B组 - A.第几天
最新推荐文章于 2024-08-29 15:45:49 发布