Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
bellcode
/
lesson6-3
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
960d08af
authored
3 years ago
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d9566405
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
12 deletions
quiz2.py
quiz2.py
View file @
960d08af
# 勇于挑战的创造师,请运行下面的代码,观察运行结果,和小伙伴们说说你的发现?
#a= ['华雄']
#c=['颜良','文丑']
#a.insert(1,"颜良")
#a.insert(2,"文丑")
#a.extend(c)
#a.append("颜良")
#a.append("文丑")
#print(a)
'''a= ['华雄']
c=['颜良','文丑']
a.insert(1,"颜良")
a.insert(2,"文丑")
a.extend(c)
a.append("颜良")
a.append("文丑")
print(a)'''
'''a=input()
b=1
c=0.1
count=0
for i in range(int(a)):
b=b*10
c=c*10
for i in range(int(c),b):
if str(i)[::]==str(i)[::-1]:
print(i)
count=count+1
print(count)'''
import
turtle
distance
=
1
colors
=
[
"darkred"
,
""
,
"darkgreen"
,
"lightblue"
]
for
i
in
range
(
300
):
turtle
.
pencolor
(
colors
[
i
%
4
])
turtle
.
forward
(
distance
)
distance
=
distance
+
1.5
turtle
.
right
(
91
)
turtle
.
hideturtle
()
turtle
.
done
()
...
...
This diff is collapsed.
Click to expand it.
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