Commit c2d9dc26 by BellCodeEditor

save project

parent 33db3784
Showing with 9 additions and 8 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 a in s:
if s[a]>c: if s[a]>c:
print("没更新") print("没更新")
else: else:
s[a]=c s[a]=c
print("已更新") print("已更新")
else: else:
s[a]=c s[a]=c
print("已添加") print("已添加")
print(s) print(s)
\ No newline at end of file \ 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