Commit 74b7145f by BellCodeEditor

auto save

parent 76bae3d9
Showing with 3 additions and 5 deletions
dict = {'可口可乐':300000000000000000000000000000000000000000000000000000000000,'牛奶':4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,'水':10000000000000000000000000000000000000000000000000000000,'辣条':3000000000000000000000000000000000000000000000000000000000000000000000000000,} dict = {'可口可乐':3,'牛奶':4000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000,'水':1,'辣条':3,}
j = input("你要买什么") j = input("你要买什么")
if j in dict: if j in dict:
print(j+str(dict[j])+"元") print(j+str(dict[j])+"元")
else: \ No newline at end of file
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