Commit 06538439 by BellCodeEditor

save project

parent 77fde752
Showing with 13 additions and 7 deletions
...@@ -2,13 +2,18 @@ s1 = {'语文': 99, '数学': 99, '英语': 99} ...@@ -2,13 +2,18 @@ s1 = {'语文': 99, '数学': 99, '英语': 99}
s2 = {'语文': 99, '数学': 99, '英语': 99} s2 = {'语文': 99, '数学': 99, '英语': 99}
s3 = {'语文': 99, '数学': 100, '英语': 99} s3 = {'语文': 99, '数学': 100, '英语': 99}
score = {'悟空': s1, '诺依': s2, '小贝':s3} score = {'悟空': s1, '诺依': s2, '小贝':s3}
info = score['悟空']
for k,v in info.items(): while True:
print(k,v) print(请输入名字,退出)
sgfh=score['悟空']['数学'] name=input("名字,")
print(sgfh) print("*" * 30)
if name in score: info = score['悟空']
sgfh=score['悟空']['数学']
print(sgfh)
if name in score:
for k,v in info.items(): for k,v in info.items():
print(k,v) print(k,v)
else: elif name == 'q':
break
else:
print("你在狗叫什么") 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