Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-1
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e371dd5b
authored
Mar 02, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
cbabd846
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
fffffffff
sss.py
fffffffff
0 → 100644
View file @
e371dd5b
dict={'可口可乐':2,'百事可乐':2,'崂山可乐':2,'芬达':1,'七喜':2,'农夫山泉':3,'纤果巴士':3,'果粒橙':3}
k=input()
\ No newline at end of file
sss.py
0 → 100644
View file @
e371dd5b
dict
=
{
'可口可乐'
:
2
,
'百事可乐'
:
2
,
'崂山可乐'
:
2
,
'芬达'
:
1
,
'七喜'
:
2
,
'农夫山泉'
:
3
,
'纤果巴士'
:
3
,
'果粒橙'
:
3
}
k
=
input
(
'你想买什么呀?'
)
if
k
in
dict
:
print
(
'叮咚~您的'
+
k
+
'需要支付'
+
str
(
dict
[
k
])
+
'元~'
)
else
:
print
(
'暂时没有,敬请期待~'
)
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment