Commit d3d38a1a by BellCodeEditor

auto save

parent 6314a8fa
Showing with 211 additions and 0 deletions
This source diff could not be displayed because it is too large. You can view the blob instead.
jvzi1="白日依山尽"
jvzi2="黄河入海流"
jvzi3="欲穷千里目"
jvzi4="更上一层楼"
a=","
b="。"
print(jvzi1+a+jvzi2+b+jvzi3+a+jvzi4+b)
year=int(input("请输入年:"))
month=int(input("请输入月:"))
day=int(input("请输入日:"))
months=(0,31,59,90,120,151,181,212,243,273,304,334)
if 0<=month<=12:
sum=months[month-1]
else:
print('data error!')
sum+=day
leap=0
if((year%400==0)or(year%4==0)and(year%100!=0)):
leap=1
if (leap==1)and(month>2):
sum+=1
print("这是%d年的第%d天"%(year,sum))
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