Commit fc25543b by BellCodeEditor

save project

parent fbc3ff4b
Showing with 16 additions and 0 deletions
dict={'后悔':53,'地方':76,'有关':87}
k=input('你的名字')
v=input('你的成绩')
if k in dict:
if int(v)>dict[k]:
dict[k]=int(v)
print('你的新成绩'+v+'已刷新')
print(dict)
else:
print('未刷新')
else:
dict[k]=int(v)
print('成绩以增加')
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