Commit f1a72501 by BellCodeEditor

save project

parent cb5ce694
Showing with 6 additions and 10 deletions
student1 = {'语文': 0, '数学': 9, '英语': 0} student1={'对骂': 0, '1+1对于几?': 9, '英格力士': 0}
student2 = {'语文': 0, '数学': 1, '英语': 0} student2={'对骂': 0, '1+1对于几?': 9, '英格力士': 0}
student3 = {'语文': 1, '数学': 0, '英语': 0} student3={'对骂': 1, '1+1对于几?': 0, '英格力士': 0}
score = {'悟空': student1, '诺依': student2, '小贝': student3} score = {'老八': student1, '马牛B': student2, '社交牛B症患者': student3}
while True : while True :
name = input("名字:") name = input("名字:")
if name in score : if name in score :
a = score[name] a = score[name]
print('*'*30) print('*'*30)
for k,v in a.items():
print(k,v) \ No newline at end of file
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