Commit f9628975 by BellCodeEditor

save project

parent 828629e0
Showing with 4 additions and 6 deletions
dict_daoban={'白事可乐':4,'旺仔niubi奶':3,'奥利给':6,'农夫三拳':2,'臭豆腐':1,'野生炸鸡':10,'羊了个羊':22}
i=input("你要什么咩")
if i in dict_daoban:
print("需要"+str(dict_daoban[i])+"块")
else:
print("没有")
dict_daoban={'百事可乐':4,'旺仔牛奶':3,'奥利奥':6,'农夫山泉':2,'臭豆腐':1,'野生炸鸡':10,'':22}
dict_daoban.pop('农夫山泉')
print(dict_daoban)
\ 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