Commit f5f4b7b3 by BellCodeEditor

save project

parent 2aba7d35
Showing with 13 additions and 6 deletions
xxs1 = {'语文'91,'数学':88,'英语':85,}
xxs2= {'语文'92,'数学':89,'英语':86,}
xxs3= {'语文'93,'数学':90,'英语':87,}
s = {"傻Ⅹ"xxs1,"脑残":xxs2,"智障":xxs3,}
for x,y in s.items()
xxs1={'语文':91,'数学':88,'英语':85}
xxs2={'语文':92,'数学':89,'英语':86}
xxs3={'语文':93,'数学':90,'英语':87}
s = {"明":xxs1,"红":xxs2,"李":xxs3}
while True:
name=input("请输入你要查询的名字")
if name in s:
s=s[name]
print(name,"的成绩是")
for x,y in s.items():
print(x,y)
break
else:
print("你输入的名字有误,请重新输入")
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