From ee3e0472496cbaf7a3eaace236f667d2fcc0389c Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Sun, 11 Apr 2021 19:08:40 +0800 Subject: [PATCH] save project --- diy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/diy.py b/diy.py index 6e2d222..5d2cf1f 100644 --- a/diy.py +++ b/diy.py @@ -2,4 +2,6 @@ dict= {'可口可乐':3,'旺仔牛奶':4,'农夫山泉':1,'辣条':3,'巴西烤肉':2,'果冻':4,'乐事':5,'奥利奥':10,'巧克力':6} K=input("你想买啥") if k in dict: - print("你得花",+str(dict[k])) \ No newline at end of file + print("你得花"+str(dict[k])) +else: + print("没了,滚") \ No newline at end of file -- libgit2 0.25.0