Commit 3ea3d41f by BellCodeEditor

auto save

parent 83b73772
Showing with 14 additions and 0 deletions
dict = {'甲':50,'乙':80,'丙':75}
# 输入名字和成绩
name = input("名字:")
s = input("成绩:")
if name in dict:
if int(s)>dict[name]:
dict[name] = int(s)
print("刷新成绩")
else:
print("很遗憾,未刷新")
else:
dict[name] = int(s)
print("第一次成绩录入")
print(dict)
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