Commit e8c77985 by BellCodeEditor

save project

parent 09e2a3d8
Showing with 7 additions and 4 deletions
# 直接运行以下代码,说说你的发现:
a = {'赵一':30,'丁二':37,'孙五':52,'王猛':89,'周亮':98}
a = {"语文":99,"数学":44,"英语":1000}
b = {"语文":99,"数学":44,"英语":1000}
c = {"语文":99,"数学":44,"英语":1000}
ba = {'赵一':a,'丁二':b,'孙五':c}
name = input("姓名")
if name in a:
for k,v in a[name].items():
if name in ba:
for k,v in ba[name].items():
print(k,v)
\ 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