Commit 4b6ac008 by BellCodeEditor

save project

parent 5dd923a5
Showing with 13 additions and 0 deletions
dict={"香蕉":3,"苹果":1,"枸杞":2,"悟空":190,"小贝":0.1}
q=input("名字")
j=input("价格")
if q in dict:
if float[q]<dict[q]
dict[q]=float[j]
print("降价了,价钱是"+j+"元")
else:
print("涨价了")
else:
dict[q]=float[j]
print(q"的价钱"+j+"shang")
\ 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