MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _go

Method _go

tools/python-3.11.9-amd64/Lib/turtle.py:1603–1606  ·  view source on GitHub ↗

move turtle forward by specified distance

(self, distance)

Source from the content-addressed store, hash-verified

1601 self._setDegreesPerAU(math.tau)
1602
1603 def _go(self, distance):
1604 """move turtle forward by specified distance"""
1605 ende = self._position + self._orient * distance
1606 self._goto(ende)
1607
1608 def _rotate(self, angle):
1609 """Turn turtle counterclockwise by specified angle if angle > 0."""

Callers 3

forwardMethod · 0.95
backMethod · 0.95
circleMethod · 0.95

Calls 1

_gotoMethod · 0.95

Tested by

no test coverage detected