Commit 595efc86 by BellCodeEditor

save project

parent 5b786a6c
Showing with 25 additions and 7 deletions
for i in range(1,5):
for j in range(1,5):
for k in range(1,5):
if i!=j and j!=k and i!=k:
print(int(str(i)+str(j)+str(k)))
for i in range(1,10):
for j in range(10):
for k in range(10):
if i**3+j**3+k**3==int(str(i)+str(j)+str(k)):
print(int(str(i)+str(j)+str(k)))
student1 = {'语文': 91, '数学': 88, '英语': 85} student1 = {'语文': 91, '数学': 88, '英语': 85,"跳远":10800000000}
student2 = {'语文': 97, '数学': 98, '英语': 90} student2 = {'语文': 97, '数学': 98, '英语': 90,"跳远":103}
student3 = {'语文': 95, '数学': 100, '英语': 93} student3 = {'语文': 95, '数学': 100, '英语': 93,"跳远":118}
score = {'悟空': student1, '诺依': student2, '小贝': student3} score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True:
a = input("名字:") a = input("名字(按1键退出):")
for b,c in score[a].items(): if a in score:
print(b,c) for b,c in score[a].items():
print(b,c**0.8)
elif a=="1":
break
else:
print(a+"是谁")
......
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