Commit f6b73b70 by BellCodeEditor

save project

parent 6d607cef
Showing with 14 additions and 6 deletions
...@@ -5,8 +5,17 @@ xb={'语文':99.5,'数学':100,'英语':100} ...@@ -5,8 +5,17 @@ xb={'语文':99.5,'数学':100,'英语':100}
d={'语文':95,'数学':100,'英语':82} d={'语文':95,'数学':100,'英语':82}
m={'语文':65,'数学':71,'英语':86} m={'语文':65,'数学':71,'英语':86}
student={'雄楚墨':a,'雄尔':b,'雄达':c,'王聪聪':xb,'姜晓亚':d,'米肖权':m} student={'雄楚墨':a,'雄尔':b,'雄达':c,'王聪聪':xb,'姜晓亚':d,'米肖权':m}
students=student['米肖权'] while True:
print('w'*20) print('退出请按q')
for k,v in students.items(): o=input('请输入要查询的名字:')
print(k,v) print("*"*20)
print('w'*20) if o in student:
\ No newline at end of file students=student[o]
for k,v in students.items():
print(k,v)
elif o=='q':
break
else:
print('您输入的名字不正确,请重新输入')
print("*"*20)
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