题目做到有关python的turtle模块应用,记录一下。
import turtle
#turtle.speed(0)
turtle.hideturtle()
turtle.circle(100,90)
turtle.pensize('3')
turtle.pencolor('red')
turtle.circle(100,60)
turtle.pensize('1')
turtle.pencolor('black')
turtle.circle(100,210)
turtle.penup()
turtle.goto(100,0)
turtle.pendown()
turtle.circle(100,210)
turtle.pencolor('red')
turtle.pensize('3')
turtle.circle(100,60)
turtle.pensize('1')
turtle.pencolor('black')
turtle.circle(100,90)
turtle.penup()
turtle.goto(50,86.60)
turtle.pendown()
turtle.pensize('3')
turtle.pencolor('red')
turtle.circle(100,30)
turtle.pensize('1')
turtle.pencolor('black')
turtle.circle(100,300)
turtle.pensize('3')
turtle.pencolor('red')
turtle.circle(100,30)
turtle.pensize('1')
turtle.penup()
turtle.pencolor('black')
turtle.goto(0,100)
turtle.pendown()
turtle.goto(100,100)
turtle.goto(50,186.6)
turtle.goto(0,100)
turtle.done()