Commit 4e9e6a7b by BellCodeEditor

save project

parent 86449f29
Showing with 8 additions and 0 deletions
......@@ -6,10 +6,18 @@ score = {'悟空': student1, '诺依': student2, '小贝': student3}
while True:
name = input("名字:")
print('*'*30)
s=0
if name in score:
a=score[name]
for k,v in a.items():
print(k,v)
s=s+v
print('总分是'+str(s))
print('*'*30)
elif name=="q":
break
......
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