Commit c2d9dc26 by BellCodeEditor

save project

parent 33db3784
Showing with 14 additions and 13 deletions
s={'小牛':10,'小熊猫':66} while True:
a=input("姓名") s={'小牛':10,'小熊猫':66}
b=input("成绩") a=input("姓名")
c=int(b) b=input("成绩")
if a in s: c=int(b)
if s[a]>c: if a in s:
print("没更新") if s[a]>c:
print("没更新")
else:
s[a]=c
print("已更新")
else: else:
s[a]=c s[a]=c
print("已更新") print("已添加")
else: print(s)
s[a]=c \ No newline at end of file
print("已添加")
print(s)
\ 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