Commit 216d982c by BellCodeEditor

auto save

parent 83b73772
Showing with 28 additions and 0 deletions
c={'小明':56,'小刚':66,'小兵':87}
k=input("请输入姓名")
v=input("请输入新成绩")
if k in c:
if int(v)>c[k]:
c[k]=int(v)
print(k+"的成绩已被更新为"+str(v))
else:
print("继续加油")
else:
c[k]=int(v)
print("恭喜"+k+"的成绩已被更新")
print(c)
\ No newline at end of file
c={'e':45,'r':56,'t':68}
k=input("REfsef")
v=input("sfdsfesf")
if k in c:
if int(v)>c[k]:
c[k]=int(v)
print(k+"的成绩已更新为"+str(v))
else:
print("继续加油")
else:
c[k]=int(v)
print(k+"的成绩已被更新")
print(c)
\ 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