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
696af952
authored
Jul 05, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
57b4c64a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
0 deletions
ffsdf.py
g78g7t.py
xdgb g.py
ffsdf.py
0 → 100644
View file @
696af952
a
=
[
"1"
,
"2"
,
"3"
,
"4"
,
"5"
]
a
[
1
:
4
]
print
(
a
[
1
:
4
])
\ No newline at end of file
g78g7t.py
0 → 100644
View file @
696af952
name
=
"刘强"
power
=
66
hero
=
[
"大耳光"
,
22
,
"小耳光"
,
45
,
"中耳光"
,
79
,]
for
i
in
range
(
len
(
hero
)):
if
i
%
2
==
1
and
hero
[
i
]
>=
power
:
hero
.
insert
(
i
-
1
,
name
)
hero
.
insert
(
i
,
power
)
print
(
hero
)
\ No newline at end of file
xdgb g.py
View file @
696af952
a
=
[
"1"
,
"2"
,
"3"
,
"4"
,
"5"
]
a
[
1
:
4
]
print
(
a
[
1
:
4
])
\ 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