Commit 5e0ba9d1 by BellCodeEditor

save project

parent 9ed9deb2
Showing with 10 additions and 3 deletions
...@@ -11,12 +11,19 @@ while True : ...@@ -11,12 +11,19 @@ while True :
print("退出请输入q") print("退出请输入q")
name = input("名字:") name = input("名字:")
if name in score : if name in score :
s=0
a = score[name] a = score[name]
print('*'*30) print('*'*30)
for k,v in a.items(): for k,v in a.items():
print(k,v) print(k,v)
s=s+v
print(name+"的总分数为"+str(s))
print("*"*30) print("*"*30)
continue
elif name=="q":
break break
else: else:
print('输入错误') print("查询错误,请重新输入")
print("="*30)
\ No newline at end of file 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