Commit 1fe42980 by BellCodeEditor

auto save

parent 83b73772
Showing with 10 additions and 0 deletions
dict={"小明":88,"小红":98,"小张":56}
k=input("请输入姓名:")
v=input("请输入成绩:")
if k in dict:
if int(v)>dict[k]:
dict[k]=int(v)
else:
dict[k]=int(v)
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