Commit 36bca46d by BellCodeEditor

save project

parent 3512efcd
Showing with 4 additions and 3 deletions
q={"香蕉":2.7,"梨"3.9"蓝莓":5.3}
q={"香蕉":2.7,"梨":3.9,"蓝莓":5.3}
a=input("啥水果")
v=input("多少钱")
if a in q:
if float(v)<q(a)
if float(v)<q[a]:
print("涨价了")
else:
print("降价了")
else:
q[a]=v[a]
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