Commit eaaa60a2 by BellCodeEditor

save project

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