Commit 161d1379 by BellCodeEditor

auto save

parent 907ebc61
Showing with 11 additions and 9 deletions
...@@ -3,11 +3,13 @@ student1 = {'语文':97,'数学':88,'英语':85} ...@@ -3,11 +3,13 @@ student1 = {'语文':97,'数学':88,'英语':85}
student1 = {'语文':95,'数学':88,'英语':85} student1 = {'语文':95,'数学':88,'英语':85}
score ={'悟空':student1,'诺依':student1,'小贝':student1} score ={'悟空':student1,'诺依':student1,'小贝':student1}
name = input('请输入名字') while True:
print('*'*30) print(q退出)
if name in score: name = input('请输入名字')
info = score(name) print('*'*30)
for k,v in info.item(): if name in score:
print(k,v) info = score(name)
else: for k,v in info.item():
print('输入错误') print(k,v)
\ No newline at end of file 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