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
ba97846a
authored
Jul 10, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
a1e03d2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
quiz.py
sn.py
quiz.py
View file @
ba97846a
dict_hero
=
{
'赵一'
:
30
,
'丁二'
:
37
,
'孙五'
:
52
,
'王猛'
:
89
,
'周亮'
:
98
}
dict_hero
=
{
'赵一'
:
30
,
'丁二'
:
37
,
'孙五'
:
52
,
'王猛'
:
89
,
'周亮'
:
98
}
dict_hero
[
'李四'
]
=
120
dict_hero
[
'李四'
]
=
120
if
'李四'
in
dict_hero
:
print
(
dict_hero
[
'李四'
])
\ No newline at end of file
sn.py
0 → 100644
View file @
ba97846a
huoms
=
{
"鼻屎"
:
1
,
"龙狙"
:
100000
,
"狗屎"
:
100
,
"十万颗核弹"
:
0.01
}
k
=
input
(
"你这个傻逼要买什么!"
)
if
k
in
huoms
:
print
(
"你买的是"
+
k
+
",消费"
+
str
(
huoms
[
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