Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson3-2_DIY1
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
508ad2d2
authored
Apr 11, 2024
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
b87741b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
0 deletions
2.0.py
3.0.py
土豆兄弟.py
2.0.py
0 → 100644
View file @
508ad2d2
goods
=
{
'可口可乐'
:
3
,
'旺仔牛奶'
:
4
,
'农夫山泉'
:
1
,
'垃圾食品'
:
5
,
'黄金牛肉'
:
9999999999999999
,
'奥利给'
:
0
,
'淄博烧烤'
:
100
,
'肯德基全家桶'
:
66
,
'豪华套餐'
:
10000000
,
'自动售货机'
:
9.9
,
'啃鸡鸡'
:
0.9
}
goods
.
pop
(
"农夫山泉"
)
print
(
goods
)
\ No newline at end of file
3.0.py
0 → 100644
View file @
508ad2d2
student1
=
{
'语文'
:
100
,
'数学'
:
60
,
'英语'
:
60
}
student2
=
{
'语文'
:
99.5
,
'数学'
:
75.5
,
'英语'
:
99.99
}
student3
=
{
'语文'
:
100
,
'数学'
:
100
,
'英语'
:
99.9999
}
score
=
{
'悟空'
:
student1
,
'诺依'
:
student2
,
'小贝'
:
student3
}
name
=
input
(
"名字:"
)
infor
=
score
[
name
]
for
k
,
v
in
score
.
items
():
print
(
infor
)
\ No newline at end of file
土豆兄弟.py
0 → 100644
View file @
508ad2d2
weather
=
{
'北京'
:
8
,
'上海'
:
15
,
'广州'
:
20
,
'深圳'
:
21
}
weather
=
{
'北京'
:
8
,
'上海'
:
15
,
'广州'
:
20
,
'深圳'
:
21
}
data
=
weather
.
pop
(
"北京"
)
print
(
data
)
print
(
weather
)
\ 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