Commit d7ad5a2e by BellCodeEditor

save project

parent 83b73772
Showing with 13 additions and 0 deletions
score = {"小明":80,"小红":90}
name=input("名字:")
s=input("成绩:")
if name in score
if int(s)>score[name]:
score[name]=int(s)
print(score)
else:
print(score)
else:
score[name]=int(s)
print(score)
\ 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