Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-2
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
dccef2a1
authored
Jan 31, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save project
parent
5606505c
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
1.py
11.py
1887415157.py
diy.py
1.py
0 → 100644
View file @
dccef2a1
a
=
[
'张芷僮'
,
'爸爸'
,
'妈妈'
]
#a.insert(3,'浩浩')
a
.
append
(
'浩浩'
)
print
(
a
)
#a.extend('爷爷','奶奶')
b
=
[
'爷爷'
,
'奶奶'
]
b
.
insert
(
2
,
'小姨'
)
a
.
extend
(
b
)
print
(
a
)
#b.insert(2,'小姨')
#print(b)
11.py
0 → 100644
View file @
dccef2a1
#猴子第一天摘下若干个桃子,当即吃了一半,还不过瘾,又多吃了一个。
#第二天早上又将剩下的桃子吃掉一半,又多吃了一个。 以后每天早上都吃了前一天剩下的一半零一个。
#到第10天早上想再吃时,见只剩下一个桃子了。 求第一天共摘了多少个桃子。
a
=
1
for
i
in
range
(
9
):
a
=
a
*
2
+
1
print
(
a
)
1887415157.py
0 → 100644
View file @
dccef2a1
diy.py
View file @
dccef2a1
...
...
@@ -4,4 +4,5 @@
#这时还是无名小卒的关羽上前请战,请从b列表中删掉“关羽”,用三种方法哦。
b
=
[
'袁术'
,
'夏侯惇'
,
'曹操'
,
'关羽'
]
b
.
pop
(
'关羽'
)
\ No newline at end of file
b
.
pop
(
3
)
print
(
b
)
\ 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