Commit 3f8fd72e by BellCodeEditor

save project

parent 83b73772
Showing with 13 additions and 0 deletions
dict={"吴泽硕":89,"陈长浩":0,"李朗":83,"林隽韬":100}
name=input("名字:")
score=input("成绩:")
if name in dict:
if int(score)>dict[name]:
dict[name]=int(score)
print(name+"成绩已改成"+str(score)+"分")
else:
print(name+"成绩不变")
else:
dict[name]=int(score)
print(name+"的第一次成绩为"+str(score)+"分")
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