Commit 0905ebac by BellCodeEditor

save project

parent 8d55a7c0
Showing with 7 additions and 6 deletions
......@@ -9,11 +9,12 @@
# else:
# print("没有此商品")
name = {'小美':99}
a = input()
b = int(input())
if a in name:
while True:
a = input()
b = int(input())
if a in name:
if b > name[a]:
name[a] = b
else:
else:
name[a] = b
print(name)
\ No newline at end of file
print(name)
\ 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