Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-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
f93ff623
authored
Dec 22, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
dd8cdd2a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
diy.py
iotyr.py
diy.py
View file @
f93ff623
...
@@ -2,4 +2,6 @@ dict_hero={'猴三':10,'猴一':21,'猴队长':39}
...
@@ -2,4 +2,6 @@ dict_hero={'猴三':10,'猴一':21,'猴队长':39}
print
(
dict_hero
)
print
(
dict_hero
)
print
(
dict_hero
[
'猴队长'
])
print
(
dict_hero
[
'猴队长'
])
dict_hero
[
'猴队长'
]
=
40
dict_hero
[
'猴队长'
]
=
40
print
(
dict_hero
)
dict_hero
[
'猴十'
]
=
25
print
(
dict_hero
)
print
(
dict_hero
)
\ No newline at end of file
iotyr.py
0 → 100644
View file @
f93ff623
dict
=
{
"北京烤日本"
:
100
,
"八二年辣鸡"
:
100000000000000000000000000000000
}
k
=
input
(
'你想吃什么'
)
if
k
in
dict
:
print
(
'滴滴~我的'
+
k
+
'不用支付'
+
str
(
dict
[
k
])
+
'欧元~'
)
\ 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