Commit cfcde38f by BellCodeEditor

save project

parent 671f716b
Showing with 14 additions and 0 deletions
dict={'苏联':80,'德国':83,'日本':0,'法国':43}
dict={'苏联':80,'德国':83,'日本':0,'法国':43}
while True:
k=input("请输入姓名")
v=int(input("请输入最新成绩"))
if k in dict:
if v>dict[k]:
dict[k]=v
else:
print('加油!')
else:
dict[k]=v
print(k+"你的成绩已更新:"+str(v)+'分')
\ 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