Commit 9375c4f2 by BellCodeEditor

save project

parent 8bc64b08
Showing with 13 additions and 0 deletions
dict={}
while True:
a=input("今天有哪些水果卖?")
b=input("多少钱?")
if a in dict:
if b > dict[a]:
dict[a]=b
else:
print(dict)
else:
dict[a]=b
print(dict)
\ 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