Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson7_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
7d7ca75d
authored
Mar 27, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
8b3f0614
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletions
1.py
2.py
1.py
View file @
7d7ca75d
dict_SB
=
{
'侯三'
:
0
,
'史珍香'
:
-
0.1
,
'大马猴'
:
1
,
'狗腿子'
:
2
}
dict_SB
=
{
'侯真贱'
:
0
,
'史珍香'
:
-
0.1
,
'大马猴'
:
1
,
'狗腿子'
:
2
}
print
(
dict_SB
)
print
(
dict_SB
[
'侯真贱'
])
dict_SB
[
'侯真贱'
]
=
0.1
print
(
dict_SB
)
print
(
dict_SB
)
\ No newline at end of file
2.py
0 → 100644
View file @
7d7ca75d
dict_SB
=
{
'奥利给'
:
10000000000
,
'巧克力之翔'
:
198347
,
'老八专用汉堡'
:
145353553
,
'狗腿子'
:
10000000
}
r
=
input
(
'尊敬的老八,你想吃什么'
)
if
r
in
dict_SB
:
print
(
'你要支付'
+
r
+
'需要支付'
+
str
(
dict_SB
[
r
])
+
'元'
)
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