Commit d5af94bb by BellCodeEditor

save project

parent 10af1cba
Showing with 20 additions and 0 deletions
sb1 = {"语文":90,"数学":87,"英语":0}
sb2 = {"语文":88,"数学":0,"英语":0}
sb3 = {"语文":99,"数学":0,"英语":0}
sbBJ={"大傻子":sb1,"二傻子":sb2,"三傻子":sb3}
while True:
name = input("请输入名字:")
print("$"*40)
if name =="q":
break
elif name not in sbBJ.keys():
print("输入名字有误~~!")
else:
sub_sbBJ = sbBJ[name]
print(name)
for subject,subject_sbBJ in sub_sbBJ.items():
print(subject,subject_sbBJ)
print("$"*40)
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