Commit 55881b55 by BellCodeEditor

save project

parent 83b73772
Showing with 29 additions and 0 deletions
dict={"阿":60,"欧派":50,"自行车":30}
name=input("名字: ")
Dream=input("成绩:")
if name in dict:
if int(Dream) > dict[name]:
dict[name]=int(Dream)
print(name+"成绩已改"+str(Dream))
else:
print(name+"成绩不变")
else:
dict[name]=int(Dream)
print(name+"第一次的成绩"+str(Dream)+"分")
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