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
7ef4b715
authored
Sep 23, 2025
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
26b3b1d4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
14 deletions
1.py
111.py
2.py
diy.py
1.py
0 → 100644
View file @
7ef4b715
a1
=
{
"语文"
:
100
,
"数学"
:
100
,
"英语"
:
100
}
a2
=
{
"语文"
:
99
,
"数学"
:
99
,
"英语"
:
99
}
a3
=
{
"语文"
:
98
,
"数学"
:
99
,
"英语"
:
100
}
s
=
{
"李金泽"
:
a1
,
"王泽龙"
:
a2
,
"马壹辰"
:
a3
}
info
=
input
(
"名字:"
)
print
(
"@"
*
30
)
if
info
in
s
:
d
=
s
[
info
]
for
i
,
j
in
d
.
items
():
#keys() values() items()
print
(
i
,
j
)
else
:
print
(
"没有这个人"
)
print
(
"@"
*
30
)
\ No newline at end of file
111.py
0 → 100644
View file @
7ef4b715
# pai=3.1415926
# r=int(input('请输入圆的半径:'))
# s=str(round(pai*r*r,2))
# c=str(round(2*pai*r,2))
# print("\n".join([s,c]))
2.py
0 → 100644
View file @
7ef4b715
# n=int(input())
# s=0
# if n%2==0:
# print('y e s')
# else:
# print('n o')
a
,
c
,
b
=
input
()
if
a
>
b
:
print
(
a
)
if
b
>
a
:
print
(
b
)
diy.py
View file @
7ef4b715
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识:
a1
=
{
"语文"
:
90
,
"数学"
:
88
,
"英语"
:
100
}
# 来,我给你起个头~
a2
=
{
"语文"
:
90
,
"数学"
:
89
,
"英语"
:
99
}
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
a3
=
{
"语文"
:
70
,
"数学"
:
88
,
"英语"
:
60
}
bro1
=
"关羽"
b
=
{
"小贝"
:
a1
,
"悟空"
:
a2
,
"诺伊"
:
a3
}
bro2
=
"刘备"
name
=
input
(
"名字?"
)
bro3
=
"张飞"
print
(
"*"
*
30
)
bros
=
[
"刘备"
,
"关羽"
,
"张飞"
]
if
name
in
b
:
bro1
=
[
"关羽"
,
160
,
8.5
]
c
=
b
[
name
]
bro2
=
[
"刘备"
,
161
,
9.1
]
for
k
,
v
in
c
.
items
():
bro3
=
[
"张飞"
,
166
,
8.3
]
print
(
k
,
v
)
bros
[
0
]
=
"关羽"
else
:
bros
[
1
]
=
"刘备"
print
(
"没有这个名字"
)
print
(
bros
)
print
(
"*"
*
30
)
\ No newline at end of file
\ 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