Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson8-4
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
a5a2e414
authored
Dec 11, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
7c3858ab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
diy.py
diy.py
View file @
a5a2e414
dict
=
{
"可口可乐"
:
2
,
"青梅绿茶"
:
3
,
"魔鬼辣条"
:
2
,
"棒棒糖"
:
0.5
,
"虾条"
:
1
,
"洋葱圈"
:
1
}
dict
=
{
'怀疑哦'
:
10
,
'给v就'
:
1
,
'会突然'
:
2
}
o
=
input
(
"您要买什么呀?"
)
print
(
dict
)
if
o
in
dict
:
print
(
dict
[
'会突然'
])
print
(
"叮咚~您的"
+
o
+
"需要支付"
+
str
(
dict
[
o
])
+
"元~"
)
dict
[
'怀疑哦'
]
=
8888000
else
:
print
(
dict
)
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