diff --git a/.......py b/.......py new file mode 100644 index 0000000..fef6ac5 --- /dev/null +++ b/.......py @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/......py b/......py new file mode 100644 index 0000000..9eaae2e --- /dev/null +++ b/......py @@ -0,0 +1,171 @@ +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: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.....py b/.....py new file mode 100644 index 0000000..831d284 --- /dev/null +++ b/.....py @@ -0,0 +1,24 @@ +# 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("") + + + + + + + + + + + diff --git a/....py b/....py new file mode 100644 index 0000000..d3aa4a3 --- /dev/null +++ b/....py @@ -0,0 +1,16 @@ +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 + + + + + + + + diff --git a/567.py b/567.py new file mode 100644 index 0000000..f43fe0c --- /dev/null +++ b/567.py @@ -0,0 +1,13 @@ +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) + + + + + + + diff --git a/8.py b/8.py new file mode 100644 index 0000000..a174428 --- /dev/null +++ b/8.py @@ -0,0 +1,12 @@ +q=input() +if len(q)>20: + print(q) +else: + print("="*(20-len(q))/2,q,"="*(20-len(q))/2,end="") + + + + + + + diff --git a/dss.py b/dss.py new file mode 100644 index 0000000..6e33326 --- /dev/null +++ b/dss.py @@ -0,0 +1,27 @@ +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) + + + + + + + + + diff --git a/iko..py b/iko..py new file mode 100644 index 0000000..d608874 --- /dev/null +++ b/iko..py @@ -0,0 +1,54 @@ +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) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/qw.py b/qw.py new file mode 100644 index 0000000..291de9b --- /dev/null +++ b/qw.py @@ -0,0 +1,10 @@ +r=int(input()) +w=int(input()) +e=int(input()) +q=[r,e,w] +q.sort() +print(q) + + + + diff --git "a/\346\260\264\344\273\231\350\212\261.py" "b/\346\260\264\344\273\231\350\212\261.py" new file mode 100644 index 0000000..f04b1a2 --- /dev/null +++ "b/\346\260\264\344\273\231\350\212\261.py" @@ -0,0 +1,24 @@ +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]) + + + + + + + + + + + + + + + +