Commit 32ff2adb by BellCodeEditor

auto save

parent b7498cbe
Showing with 92 additions and 0 deletions
(oio)
\ No newline at end of file
s1={'数学':100,'语文':123}
s2={'数学':100,'语文':123}
s3={'数学':100,'语文':123}
scores={'小明':s1,'小王':s2,'小李':s3}
while True:
s=''
a=input('名字:')
if a=='stop':
break
if a in scores:
for m,n in scores[a].items():
s=s+m+str(n)+' '
print(a+"同学,你的成绩是:"+s)
\ No newline at end of file
str(scores[a]) 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