Commit 9d2eeefe by BellCodeEditor

auto save

parent ef16b6d2
Showing with 17 additions and 0 deletions
s1={"数学":100,"语文":120}
s2={"数学":130,"语文":170}
s3={"数学":109,"语文":122}
scores={"小明":s1,"小王":s2,"小李":s3}
while True:
a=input("名字:")
for m in scores.items():
if a in m:
print(a+"同学,你的成绩是:"+str(scores[a]))
else:
print("没有")
import random
list=[1,2,3,4,5,6]
a=random.choice(list)
print(a)
\ 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