Commit 5f2ee3f5 by BellCodeEditor

save project

parent 21e512a1
Showing with 9 additions and 1 deletions
......@@ -2,6 +2,6 @@ dict={'北京烤日本':900,'巴西辣条':10,'印度焗蜗牛':20,'10000年拉
99999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999,'铁板作业':25,'油炸试卷':10,'红烧教室':80,'铁锅炖小贝':90,'农夫山贼':5,'忘仔糖':90,'甜条':20}
k=input("你想买什么")
if k in dict:
print('你的'+k+'需要支付'+str(dict[k])+'欧元')
print'你的'+k+'需要支付'+str(dict[k])+'欧元'()
else:
print('你的'+k+'没有卖的,赶紧走开')
\ No newline at end of file
dict={'辣条':6,'可口可乐':4,'农夫山泉':5}
k=input('你想买什么?')
if k in dict:
print('你的'+k+'需要支付'+str(dict[k])+'欧元')
else:
print('你的'+k+'没有卖的,请走')
\ 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