1 import turtle #导入turtle 2 turtle.showturtle() #显示箭头 3 turtle.write('TOm') #写字符TOm 4 turtle.forward(330) #前进330像素 5 turtle.color('red') #画笔颜色改为red 6 turtle.left(90) #箭头左转90度 7 turtle.forward(330) 8 turtle.goto(0,50) #去坐标(0,50) 9 turtle.goto(0,0) #去坐标(0,0) 10 turtle.penup() 11 turtle.goto(0,330) 12 turtle.goto(0,0) 13 turtle.pendown() #下笔 14 turtle.goto(0,50) 15 turtle.goto(50,50) 16 turtle.circle(100) #画圆