Commit 4404c2f0 by BellCodeEditor

save project

parent 43d7702d
Showing with 3 additions and 19 deletions
student={'语文':91,'数学':88,'英语':85} i = 5
score={'悟空':student} j = 3
while True: print(j,'x',i,'=',j*i)
name=input("请输入姓名,退出请按q:")
if name in score:
a=score[name]
print("*"*30)
for k,v in a.items():
print(k,v)
print("*"*30)
elif name=="q":
print("*"*30)
print("退出程序")
break
else:
print("*"*30)
print("输入错误")
print("*"*30)
\ No newline at end of file
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