Commit 06538439 by BellCodeEditor

save project

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