Commit 3c178b04 by BellCodeEditor

save project

parent d13b10b1
q=int(input("年"))
w=int(input("月"))
e=int(input("日"))
r=0
if q%4==0 and q%100!=0 or q%400==0:
if w==1 and r<32:
r=e
elif w==2:
r=31+e
elif w==3 and r<32:
r=31+29+e
elif w==4:
r=31+29+31+e
elif w==5 and r<32:
r=31+29+31+30+e
elif w==6:
r=31+29+31+30+31+e
elif w==7 and r<32:
r=31+29+31+30+31+30+e
elif w==8 and r<32:
r=31+29+31+30+31+30+31+e
elif w==9:
r=31+29+31+30+31+30+31+31+e
elif w==10 and r<32:
r=31+29+31+30+31+30+31+31+30+e
elif w==11:
r=31+29+31+30+31+30+31+31+30+31+e
elif w==12 and r<32:
r=31+29+31+30+31+30+31+31+30+31+30+e
else :
if w==1 and r<32:
r=e
elif w==2 and e<29:
r=31+e
elif w==3 and r<32:
r=31+29+e
elif w==4:
r=31+29+31+e
elif w==5 and r<32:
r=31+29+31+30+e
elif w==6:
r=31+29+31+30+31+e
elif w==7 and r<32:
r=31+29+31+30+31+30+e
elif w==8 and r<32:
r=31+29+31+30+31+30+31+e
elif w==9:
r=31+29+31+30+31+30+31+31+e
elif w==10 and r<32:
r=31+29+31+30+31+30+31+31+30+e
elif w==11:
r=31+29+31+30+31+30+31+31+30+31+e
elif w==12 and r<32:
r=31+29+31+30+31+30+31+31+30+31+30+e
if r==0
print("不存在该日")
else:
# print("1x1=1")
# print("1x2=2 2x2=4")
# print("1x3=3 2x3=6 3x3=9")
# print("1x4=4 2x4=8 3x4=12 4x4=16")
# print("1x5=5 2x5=10 3x5=15 4x5=20 5x5=25")
# print("1x6=6 2x6=12 3x6=18 4x6=24 5x6=30")
# print("1x7=7 2x7=14 3x7=21 4x7=28 5x7=35")
# print("1x8=8 2x8=16 3x8=24 4x8=32 5x8=40")
# print("1x9=9 2x9=18 3x9=27 4x9=36 5x9=45")
for i in range(1,10):
for j in range(1,i+1):
print(j,"x",i,"=",i*j,end=" ")
print("")
for i in range(0,8):
for j in range(0,8):
if i%2==1:
print("白",end=" ")
else:
print("黑",end=" ")
j+=1
i+=1
qq=[2,5,1,4,3,7,6,8,9]
for i in range(0,9):
for i in range(0,8):
if qq[i]<qq[i+1]:
qq[i],qq[i+1]=qq[i+1],qq[i]
print(qq)
q=input()
if len(q)>20:
print(q)
else:
print("="*(20-len(q))/2,q,"="*(20-len(q))/2,end="")
q=int(input())
if q<=100000:
print(q*0.1+q)
else:
if 200000>=q>100000:
print((q-100000)*0.075+100000*0.1+q)
else:
if 400000>=q>200000:
print((q-200000)*0.05+200000*0.075+100000*0.1+q)
else:
if 600000>=q>400000:
print((q-400000)*0.03+400000*0.05+200000*0.075+100000*0.1+q)
else:
if 1000000>=q>600000:
print((q-600000)*0.015+600000*0.03+400000*0.05+200000*0.075+100000*0.1+q)
else:
if q>1000000:
print((q-1000000)*0.01+600000*0.015+600000*0.03+400000*0.05+200000*0.075+100000*0.1+q)
from random import *
r=str(input())
w=[10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,1000]
e={"可乐":10,"烧烤":10,"雪糕":10,"饼干":10}
shop=[]
print("欢迎",r,"用户,余额",choice(w),"元",end="" )
for k in e:
print(k,e[k],end=" ")
while True:
x=input("请购买(q退出)")
if x=='q':
break
elif x in e:
if w<e[x]:
print('没钱')
for k in e:
print(k)
r=int(input())
w=int(input())
e=int(input())
q=[r,e,w]
q.sort()
print(q)
q=""
q=""
for i in range(100,1000):
w=i//100
e=i%100//10
r=i%100%10
if w**3+e**3+r**3==i:
q+=f' {i} '
print(q[:-1])
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