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
1e3b75fd
authored
May 15, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
c1c571b4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
diy.py
diy.py
View file @
1e3b75fd
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
# 神奇百货中的物品已经帮你创建好啦,接下来要看你的了~
dict
=
{
'
龚
祺朔'
:
'白送'
,
'李嘉懿'
:
'白送'
,
'孙悟空'
:
1
,
'贝利亚'
:
3
,
'盘古'
:
2
,
'阿尔宙斯'
:
4
,
'罗辑'
:
5
,
'贝尔编程'
:
10
,
'售货机'
:
'(不买,才怪)100'
}
dict
=
{
'
袭
祺朔'
:
'白送'
,
'李嘉懿'
:
'白送'
,
'孙悟空'
:
1
,
'贝利亚'
:
3
,
'盘古'
:
2
,
'阿尔宙斯'
:
4
,
'罗辑'
:
5
,
'贝尔编程'
:
10
,
'售货机'
:
'(不买,才怪)100'
}
j
=
input
(
"你要买什么?"
)
j
=
input
(
"你要买什么?"
)
if
j
in
dict
:
if
j
in
dict
:
print
(
'您要买的商品'
+
j
+
'要'
+
str
(
dict
[
j
])
+
'元'
)
print
(
'您要买的商品'
+
j
+
'要'
+
str
(
dict
[
j
]))
else
:
else
:
print
(
"该物品在万界的百度超市仍处于短缺状态,推荐您看看百度超市"
)
print
(
"该物品在万界的百度超市仍处于短缺状态,推荐您看看百度超市"
)
...
...
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