Commit 04d77e40 by BellCodeEditor

save project

parent cad9797b
Showing with 13 additions and 9 deletions
......@@ -2,12 +2,16 @@ s = {'语文': 91, '数学': 88, '英语': 85}
b = {'语文': 97, '数学': 98, '英语': 90}
p = {'语文': 95, '数学': 100, '英语': 93}
score = {'奥逼': s, '傻逼': b, '劳大': p}
name = input("名字:")
if name in score:
a = score[name]
for k,v in a.items():
print(k,v)
else:
print("*"*30)
print("名字错误,请重新输入!")
print("*"*30)
while True:
name = input("请输入名字,按q退出")
if name in score:
a=score[name]
for k,v in a.items():
print(k,v)
elif name=="q":
break
else:
print("*"*30)
print("名字错误,请重新输入!")
print("*"*30)
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