From 35a11d98b5438616af5838d485285dbeebc0b96f Mon Sep 17 00:00:00 2001 From: BellCodeEditor <bellcode_dev@bell.ai> Date: Thu, 28 Dec 2023 20:05:13 +0800 Subject: [PATCH] save project --- 123456789.py | 2 +- 5.py | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 5.py diff --git a/123456789.py b/123456789.py index b937c20..7257574 100644 --- a/123456789.py +++ b/123456789.py @@ -4,4 +4,4 @@ print(a['野羊苏吸']) a['爱坤']=9999999999 print(a) a['宙斯']=99 -print(a) \ No newline at end of file +print(a) diff --git a/5.py b/5.py new file mode 100644 index 0000000..0539d7e --- /dev/null +++ b/5.py @@ -0,0 +1,6 @@ +r={'汪仔':9999,'奥利给':889,'佩奇肉':1234567789} +k=input('你想买什么呀?') +if k in r: + print('您的'+k+'需要支付'+str(r[k])+'元') +else: + print('神奇百货暂未有你想要的物品,敬请期待') \ No newline at end of file -- libgit2 0.25.0