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
90695203
authored
Oct 30, 2021
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
56a54120
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
33 deletions
FDGFG.py
diy.py
FDGFG.py
0 → 100644
View file @
90695203
for
i
in
range
(
1
,
14
):
\ No newline at end of file
diy.py
View file @
90695203
# 和你的小伙伴用列表讲讲桃园结义的故事,并说说这其中运用了哪些列表知识:
import
turtle
# 来,我给你起个头~
screen
=
turtle
.
Screen
()
# 从前啊,有三个bro,分别是:刘备、关羽、张飞...
size
=
screen
.
textinput
(
"你要"
,
"多大?"
)
bro1
=
"关羽"
size
=
int
(
size
)
bro2
=
"刘备"
pen
=
turtle
.
Pen
()
bro3
=
""
for
i
in
range
(
1
,
6
):
bro1
=
[
"关羽"
,
160
,
8.5
]
pen
.
forward
(
size
)
bro2
=
[
"刘备"
,
161
,
9.1
]
pen
.
right
(
144
)
bro3
=
[
"张飞"
,
166
,
8.3
]
turtle
.
done
()
bros
[
0
]
=
"关羽"
\ No newline at end of file
bros
[
1
]
=
"刘备"
b
.
pop
(
2
)
b
.
remove
(
"张飞"
)
b
.
pop
(
-
1
o
'try:
哦提及今日统一体痛苦和i放过机会干嘛看下关乎地方哦噗韩国互相u'
o
'hu'
s
'd'
f
'pi'u'h'
i
'hu'
pu
'x'
d
'fi'
o
'h'
d
'h剧场畜牧局看下怎么就开始迅速化解科学家,v;。i;空间;l'
g
'l'
g
'k
except expression as identifier:
pass)
b = ['
关羽
']
b.append("刘备")
b.append("张飞")
b.insert(1,"刘备")
b.insert(2,"张飞")
c=["刘备","张飞"]
b.extend(c)
d = ['
刘备
','
曹操
''
,
'吕布'
]
c
=
d
[
1
:]
b
.
extend
(
c
)
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