Python-turtle 发表于 2018-05-11 12345678910111213141516171819202122232425262728import turtle as tt.setup(width,height,startx,starty)t.goto(x,y)t.fd(100) #前进t.bk(100) #后退t.circle(R,180) #半径,左边角度t.seth(180)t.colormode()t.pu() #抬起画笔t.pd() #放下画笔t.opensize(7)t.pencolor('red')t.ht() #隐藏t.st() #显示t.trace(False) #轨迹t.setup()t.clear()t.rt(144) #右转t.lt(144) #左转t.begin_fill()t.end_fill()