Commit f13ddb47 by BellCodeEditor

auto save

parent 2cf596a0
Showing with 0 additions and 1 deletions
...@@ -3,7 +3,6 @@ dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤 ...@@ -3,7 +3,6 @@ dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤
a=input("你要啥") a=input("你要啥")
b=input('几个') b=input('几个')
if a in dict: if a in dict:
print(a+str(int(b)*dict[a])+'块') print(a+str(int(b)*dict[a])+'块')
else: else:
print("没有,滚!") print("没有,滚!")
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