Commit c2d9dc26 by BellCodeEditor

save project

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