Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
level3-lesson18-diy3
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
076d3524
authored
Sep 18, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
3e23446e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
diy.py
diy.py
View file @
076d3524
l
=
{
'猴三'
:
10
,
'猴一'
:
21
,
'猴五'
:
22
,
'猴队长'
:
29
,
'猴七'
:
30
}
print
(
l
[
"猴队长"
])
l
[
"猴七"
]
=
32
if
"猴十"
in
l
:
print
(
"嗨嗨"
)
l
=
{
'奥利奥'
:
10
,
'巧克力'
:
1
,
'农夫山泉'
:
22
,
'可乐'
:
2
,
'果冻'
:
14
,
'中薛高'
:
999999999999999999999999999999
}
a
=
input
()
if
a
in
l
:
print
(
a
+
str
(
l
[
a
])
+
元
)
else
:
l
[
'猴十'
]
=
25
\ No newline at end of file
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