Commit e91e2fea by BellCodeEditor

auto save

parent 9fa97cf6
Showing with 54 additions and 17 deletions
""" from turtle import*
使用turtle模块画图 a=1
每次移动都增加画笔移动的长度,并旋转91°,重复执行300次,查看效果 speed(0)
""" color("green")
import turtle pensize(1)
for i in range(200):
pen = turtle.Pen() forward(a)
# 请创造师在下面接着创作 right(91)
a+=1
hideturtle()
done()
\ No newline at end of file
# 隐藏画笔,保存画布
pen.hideturtle()
turtle.done()
\ No newline at end of file
import turtle
turtle.speed(30)
turtle.pensize(2)
turtle.pencolor("red")
turtle.left(-180)
turtle.circle(50,360)
turtle.up()
turtle.forward(100)
turtle.pencolor("black")
turtle.pendown()
turtle.circle(50,360)
turtle.up()
turtle.forward(100)
turtle.pencolor("blue")
turtle.pendown()
turtle.circle(50,360)
turtle.up()
turtle.backward(150)
turtle.right(90)
turtle.backward(50)
turtle.left(90)
turtle.pencolor("green")
turtle.pendown()
turtle.circle(50,360)
turtle.up()
turtle.forward(100)
turtle.pencolor("yellow")
turtle.pendown()
turtle.circle(50,360)
turtle.up()
turtle.forward(-100)
turtle.left(90)
turtle.forward(120)
turtle.pencolor("black")
turtle.left(-90)
turtle.forward(100)
turtle.write("奥运五环")
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