Commit a8c719b1 by BellCodeEditor

save project

parent 5fe835db
Showing with 9 additions and 10 deletions
student1 = {'语文': 10000000, '数学': 10000000, '英语': 10000000} student1 = {'语文': 10000000, '数学': 10000000, '英语': 10000000}
student2 = {'语文': 0, '数学': 10, '英语': 2} student2 = {'语文': 0, '数学': 10, '英语': 2}
student3 = {'语文': 20, '数学': 10, '英语': 9} student3 = {'语文': 20, '数学': 10, '英语': 9}
score = {'刘则鉴': student1, '二哈': student2, '吉吉': student3} score = {'刘则鉴': student1, '芭比Q了': student2, '你过来呀!': student3}
while True : while True:
name = input("名字:") name=input("姓名")
if name in score : if name in score:
a = score[name] x=score[name]
print('*'*30) for k,v in x.items():
for k,v in a.items():
print(k,v) print(k,v)
break print("*"*30)
else: else:
print('输入错误') print('输入错误!')
\ No newline at end of file \ 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