Commit 8353682e by BellCodeEditor

auto save

parent 74991fac
Showing with 7 additions and 5 deletions
weather={"北京":8,"上海":15,"广州":20,"深圳":21}
data=weather.pop("北京")
print(data)
print(weather)
\ No newline at end of file
dict={"可口可乐":3,"巴西烤肉":2,"辣条":3,"奥利奥":10}
k=input("你想要什么?")
if k in dict:
print("叮咚~您的"+k+"需要支付"+str(dict[k])+"元~")
else:
print("暂时缺货")
\ 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