Commit e7b9fc75 by BellCodeEditor

save project

parent 7b1618ff
Showing with 8 additions and 0 deletions
goods = {'苹果':9,'梨':8,'香蕉':5}
i=input("你想要什么")
if i in goods:
print(goods[i]+"元")
else:
goods[i]=10
print(goods)
\ 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