Commit 362de9b1 by BellCodeEditor

save project

parent a920e4dd
Showing with 10 additions and 5 deletions
chao={"薯条":3,"可乐":3,"巧克力":2,"兵粮":8,"手雷":1145,"原子弹":99999}
sb=input("你要买点啥:")
bs=input("几个")
sb=input("名字:")
bs=input("价钱")
if sb in chao:
c=chao[sb]*int(bs)
print('逼逼,你要的'+sb+'要支付'+str(c)+"美元")
if float(bs)<chao[sb]:
chao[sb]=float(bs)
print(sb+"降价了,现价"+bs+"美元")
else:
print("涨价了,我们不买")
else:
print("没有,滚蛋")
chao[sb]=float(bs)
print(sb+"价格已上传"+bs+"美元")
print(chao)
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