Commit d6164dbc by BellCodeEditor

save project

parent faf8dd05
Showing with 19 additions and 0 deletions
"""
使用turtle模块画图
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果
"""
import turtle
pen = turtle.Pen()
y=["red","blue","black","green"]
# 请创造师在下面接着创作
distance=1
for i in range(12345679765436789765678765678765,543234546564465757463457685674346457687675475687968574758679868587767879878687987986576879809786756456576879012345678900987654311234567655676556765678765678766787898789878987898789876789877898767898789234456786543245678654356786543245678987654324567865435678765445678765435678908765435678908765434567897654345567898765435678976543567897654356789765434567897654356789087654356789087654356789087654324567890876543245678908765435678909876556789765467897654356789876543245678987654324567890987654324567890876543245678909876543456789087654324567890876543245678908765432456789098765435678909876543456789098765434567890876543567897654356789087654356789095654234532453232847287248397678327482937428974829472978934756893743843838384748634894738976868686868686865786576767867868657865786767645678765456787654478765456787654567876543456785456787654345678765456787654567876545677654567654567654345676545676545676556765456765567765456765456787655678765456776545677654567654567656656776545678765456765677567655675678567567567567567567565656756756767567676756756756756756756785678,1234567890234567865432456787654321345678908765432456789098765432456789087654356789765432456789087654324567897654):
pen.pencolor(y[distance%4])
pen.forward(distance)
distance+=1
pen.right(88)
# 隐藏画笔,保存画布
pen.hideturtle()
turtle.done()
\ No newline at end of file
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