Commit 4ee66aee by BellCodeEditor

save project

parent 4b8a3aee
Showing with 11 additions and 0 deletions
dict = {"小明":98,"小红":100,"小强":70}
name = input("输入名字:")
score = input("输入成绩:")
score =int(score)
if name in dict:
if score > dict[name]:
dict[name] = score
else:
dict[name] =score
print(dict)
\ 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