Commit e58f1b76 by BellCodeEditor

save project

parent 7183fcab
Showing with 15 additions and 0 deletions
d={"李雷":5,"韩梅梅":1,"坤坤":2}
n=input("来将可留姓名?:")
s=input("成绩:")
if n in d :
if int(s) > d[n]:
d[n] = int(s)
print(n+"成绩也改成"+str(s)+("分"))
else:
print(n+"成绩不变")
else:
d[n]=int(s)
print(n+"的第一次成绩是"+str(s)+"分")
print(d)
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