需注意的地方
t.penup()#抬笔
t.pendown()#落笔
t.goto(x,y)#x,y分别为横坐标和纵坐标,表示将笔移到(x,y)这个位置上,通过改变x,y可以改变图形的位置,海龟作图的笔默认位置为(0,0)
import turtle
import turtle as t
t.width(5)
t.penup()
t.goto(-240,150)
t.pendown()
t.color('black')
t.right(90)
t.circle(60,180)
t.penup()
t.goto(-70,90)
t.pendown()
t.color('red')
t.right(90)
t.circle(60,180)
t.penup()
t.goto(140,100)
t.pendown()
t.color('yellow')
t.right(90)
t.circle(60,180)
t.penup()
t.goto(240,200)
t.pendown()
t.color('blue')
t.right(90)
t.circle(60,180)
import turtle
import turtle as t
t.width(5)
t.penup()
t.goto(-240,150)
t.pendown()
t.color('black')
t.right(90)
t.circle(60,180)
t.penup()
t.goto(-70,90)
t.pendown()
t.color('red')
t.right(90)
t.circle(60,180)
t.penup()
t.goto(70,210)
t.pendown()
t.color('yellow')
#t.right(90)
t.circle(60,180)
t.penup()
t.goto(240,120)
t.pendown()
t.color('blue')
t.left(90)
#t.right(90)
t.circle(60,180)
import turtle
import turtle as t
t.width(5)
t.penup()
t.goto(-150,150)
t.pendown()
t.color('black')
t.right(90)
t.circle(60,180)
t.penup()
t.goto(150,90)
t.pendown()
t.color('red')
t.right(90)
t.circle(60,180)
t.penup()
t.goto(-100,-90)
t.pendown()
t.color('yellow')
#t.left(90)
t.circle(60,180)
t.penup()
t.goto(240,-150)
t.pendown()
t.color('blue')
t.left(90)
t.circle(60,180)