Commit fd1f2c24 by BellCodeEditor

auto save

parent 5628f045
Showing with 14 additions and 0 deletions
a={"a同学":70,"B同学":80,"C同学":90}
a={"a同学":70,"B同学":80,"C同学":90}
k=input("学生姓名")
v=input("学生分数")
if k in a:
if int(v)>a[k]:
a[k] = int(v)
print("已更新")
else:
print("没有更新")
else:
a[k]=int(v)
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