Commit 67df311d by BellCodeEditor

auto save

parent 7cbbdd11
Showing with 13 additions and 5 deletions
......@@ -9,9 +9,16 @@ d1={'语文':91,'数学':88,'英语':85}
d2={'语文':97,'数学':98,'英语':90}
d3={'语文':95,'数学':100,'英语':93}
s={'悟空':d1,'诺依':d2,"小贝":d3}
n=input("名字")
if n in s:
a=s[n]
for k,v in a.items():
print(k,v)
while True:
n=input("名字")
if n in s:
a=s[n]
for k,v in a.items():
print(k,v)
elif n=='q':
break
print("查询结束")
else:
print("这里没有这个人的数据")
\ 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