Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-5-2
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
285d3b0c
authored
Jan 21, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
2be0b2a6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
1.py
1.py
View file @
285d3b0c
dict
=
{
'AK47'
:
3000
'RMB'
,
'"M16A4'
:
2500
'RMB'
,
'沙鹰'
:
2000
'RMB'
,
'M416'
:
3200
'RMB'
,
'P1911'
:
1300
'RMB'
,
'98K'
:
4000
'RMB'
,
'M24'
:
4500
'RMB'
,
'AWM'
:
6000
'RMB'
}
print
(
dict
)
a
=
input
(
'请输入购买物品的名称:'
)
b
=
input
(
'请输入购买该商品数量:'
)
c
=
input
()
\ No newline at end of file
dict
=
{
'AK47'
:
3000
,
'"M16A4'
:
2500
,
'沙鹰'
:
2000
,
'M416'
:
3200
,
'P1911'
:
1300
,
'98K'
:
4000
,
'M24'
:
4500
,
'AWM'
:
6000
}
a
=
input
(
'请输入购买枪械的名称:'
)
b
=
input
(
'请输入购买该枪械数量:'
)
if
a
in
dict
:
print
(
'精神小伙,你的'
+
a
+
'需要支付'
+
str
(
dict
[
a
])
+
'RMB,没钱给我滚蛋!爷的黑店概不赊账!!!'
)
else
:
print
(
'劳资的黑店没有你要的东西,给劳资滚人,小心劳资用87年的意大利炮轰你!!!'
)
\ 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