Commit 729b6d1e by BellCodeEditor

auto save

parent 62692a77
Showing with 20 additions and 0 deletions
s1={"数学":100,"英语":130}
s2={"数学":150,"英语":110}
score={"小明":s1,"小李":s2}
while True:
a=input("名字:")
if a in score:
s=""
for m,n in score[a].items():
s=s+m+str(n)+" "
print(a+"你的成绩:"+s)
\ 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