Commit 960d08af by BellCodeEditor

auto save

parent d9566405
Showing with 37 additions and 12 deletions
# 勇于挑战的创造师,请运行下面的代码,观察运行结果,和小伙伴们说说你的发现?
#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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment