Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-4
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
690b7a34
authored
Feb 25, 2023
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
702e9ebc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletions
1.py
diy.py
1.py
0 → 100644
View file @
690b7a34
name
=
'天天'
power
=
99
hero
=
[
'赵一'
,
38
,
'小明'
,
39
,
'小黄'
,
39.1
,
'小兰'
,
99.9
]
for
i
in
range
(
len
(
hero
)):
if
i
%
2
==
1
and
hero
[
i
]
>=
power
:
hero
.
insert
(
i
-
1
,
name
)
hero
.
insert
(
i
,
power
)
break
print
(
hero
[
4
:
11
])
\ No newline at end of file
diy.py
View file @
690b7a34
...
@@ -4,6 +4,6 @@
...
@@ -4,6 +4,6 @@
a
=
[
'吕布'
]
a
=
[
'吕布'
]
b
=
[
'袁术'
,
'公孙瓒'
,
'关羽'
,
'张飞'
,
'刘备'
,
'曹操'
]
b
=
[
'袁术'
,
'公孙瓒'
,
'关羽'
,
'张飞'
,
'刘备'
,
'曹操'
]
print
(
b
[
2
:
5
])
print
(
b
[
2
:
5
])
round
-
repeat
:
repeat
,
repeat
;
background
-
position
:
109
px
109
px
,
0
0
;
"></div><div id="
ssrBox
"><div id="
mainContainer
" class="
app
layout
-
column
flex
suite
-
doc
docssr
"><script>!function(){var e=/hideHeader=[^=]+/.test(location.search),a=document.querySelector("
#docSSRStyle");if(e){if(a)a.innerHTML+=".navigation-bar-wrapper{display: none}";var n=document.getElementById("mainContainer");if(n)n.classList.add("has-hide-header")}}();</script><div class="navigation-bar-wrapper" data-reactroot=""><div class="navigation-bar select-disabled navigation-bar__suite"><div class="navigation-bar__left layout-row layout-cross-center"><span class="universe-icon navigation-bar__goback" style="font-size:18px;color:var(icon-n1);padding:3px 2px 3px 4px;line-height:0"><svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-icon="LeftOutlined"><path d="M16.293 2.293a1 1 0 0 1 0 1.414L8 12l8.293 8.293a1 1 0 0 1-1.414 1.414l-8.293-8.293a2 2 0 0 1 0-2.828l8.293-8.293a1 1 0 0 1 1.414 0Z" fill="currentColor"></path></svg></span></div><div class="navigation-bar__right flex"><div class="note-title select-disabled layout-row"><div class="note-title__input-container"><div class="note-title__input-and-star"><p class="note-title__input disabled" id="ssrHeaderTitle"></p><span class="layout-row layout-cross-center"></span></div><div class="note-title__info"></div></div><div class="note-title__btn-container layout-row layout-cross-center"><div class="suite-share-btn-container"></div><div data-selector="suite-notice-center-button" class="notification-btn btn" style="display:flex;justify-content:center;align-items:center"><span class="universe-icon" style="font-size:18px"><svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-icon="BellOutlined"><path d="M10 3.176v-.26c0-.55.45-1 1-1h2c.55 0 1 .45 1 1v.26c3.45.917 6 4.15 6 7.998v6.364h1a1 1 0 1 1 0 2H3a1 1 0 1 1 0-2h1v-6.364c0-3.848 2.55-7.081 6-7.998ZM6 17.538h12v-6.361c0-3.458-2.686-6.261-6-6.261s-6 2.803-6 6.26v6.362Zm2.75 4.5a1 1 0 0 1 1-1h4.5a1 1 0 0 1 0 2h-4.5a1 1 0 0 1-1-1Z" fill="currentColor"></path></svg></span></div></div><button type="button" data-selector="more-menu" class="more-btn btn"><span class="universe-icon" style="font-size:18px;color:var(icon-n1);padding:4px;line-height:0"><svg width="1em" height="1em" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" data-icon="MoreOutlined"><path d="M5.5 11.75a1.75 1.75 0 1 1-3.5 0 1.75 1.75
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