def ellipseR(a,b,angle,steps,rotateAngle):
minAngle = (2*math.pi/360) * angle / steps
rotateAngle = rotateAngle/360*2*math.pi
turtle.penup()
turtle.setpos(b*math.sin(rotateAngle),-b*math.cos(rotateAngle))
turtle.pendown()
for i in range(steps):
nextPoint = [a*math.sin((i+1)*minAngle),-b*math.cos((i+1)*minAngle)]
nextPoint = [nextPoint[0]*math.cos(rotateAngle)-nextPoint[1]*math.sin(rotateAngle),
nextPoint[0]*math.sin(rotateAngle)+nextPoint[1]*math.cos(rotateAngle)]
turtle.setpos(nextPoint)
rotateAngle为你要旋转的角度,为360度。