Commit d726ed9b by BellCodeEditor

save project

parent 83b73772
Showing with 11 additions and 0 deletions
fruit={"屁股":10,"香脚":5,"peach":15,"熊":20}
k=input("水果")
v=input("价钱")
if k in fruit:
if int(v)>fruit[k]:
print("不买")
else:
print("买")
else:
fruit[k]=v
\ 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