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
0b94bfdb
authored
Sep 10, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
c8f0dd4e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
8 deletions
abcd.py
diy1.py
梳理.py
abcd.py
0 → 100644
View file @
0b94bfdb
a
=
{
"徐梓潇"
:
10
,
"徐月半子"
:
100
,
"王杞忧天"
:
1000
,
"杞然忧天"
:
100000000
}
b
=
input
(
"你要啥?"
)
if
b
in
a
:
c
=
int
(
input
(
"你要多少货物?"
))
print
(
c
*
b
+
"元"
)
\ No newline at end of file
diy1.py
View file @
0b94bfdb
# 这是悟空为花果山小猴做臂力测试的程序代码
# 这是悟空为花果山小猴做臂力测试的程序代码
dict_hero
=
{
"王子骞"
:
4
,
"杨柳**"
:
10
,
"王杞然"
:
3
,
"王昱涵"
:
10
,
"杨开喆"
:
4
,
"徐喵喵"
:
9.99999999
,
"刘嘉芮"
:
5
,
"可乐"
:
10
}
dict_laoliu
=
{
"王子骞"
:
4
,
"杨柳**"
:
10
,
"王杞然"
:
3
,
"王昱涵"
:
10
,
"杨开喆"
:
4
,
"徐喵喵宝妈"
:
9.99999999
,
"刘嘉芮"
:
5
,
"可乐"
:
10
}
dict_hero
[
"王子骞"
]
=
2
dict_laoliu
[
"王子骞"
]
=
2
dict_hero
[
"王杞然"
]
=
10
dict_laoliu
[
"王杞然"
]
=
10
dict_hero
[
"杨开喆"
]
=
4
dict_laoliu
[
"杨开喆"
]
=
4
dict_hero
[
"可乐"
]
=
5
dict_laoliu
[
"可乐"
]
=
5
dict_hero
[
"杨柳**"
]
=
6
dict_laoliu
[
"杨柳**"
]
=
6
print
(
dict_hero
)
if
"徐喵喵"
in
dict_laoliu
:
\ No newline at end of file
print
(
dict_laoliu
)
\ No newline at end of file
梳理.py
0 → 100644
View file @
0b94bfdb
++ "b/\346\242\263\347\220\206.py"
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