Commit 5525e854 by BellCodeEditor

save project

parent 4d17675e
Showing with 12 additions and 0 deletions
diy={"苹果":12,"香蕉":21,"西瓜":15}
while True:
d=input("今日水果")
r=input("价格")
if d in diy:
if diy[d] > int(r):
print("降价了")
else:
print("不买")
else:
diy[d]=int(r)
\ 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