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

Method back

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

Move the turtle backward by distance. Aliases: back | backward | bk Argument: distance -- a number Move the turtle backward by distance, opposite to the direction the turtle is headed. Do not change the turtle's heading. Example (for a Tu

(self, distance)

Source from the content-addressed store, hash-verified

1638 self._go(distance)
1639
1640 def back(self, distance):
1641 """Move the turtle backward by distance.
1642
1643 Aliases: back | backward | bk
1644
1645 Argument:
1646 distance -- a number
1647
1648 Move the turtle backward by distance, opposite to the direction the
1649 turtle is headed. Do not change the turtle's heading.
1650
1651 Example (for a Turtle instance named turtle):
1652 >>> turtle.position()
1653 (0.00, 0.00)
1654 >>> turtle.backward(30)
1655 >>> turtle.position()
1656 (-30.00, 0.00)
1657 """
1658 self._go(-distance)
1659
1660 def right(self, angle):
1661 """Turn turtle right by angle units.

Callers

nothing calls this directly

Calls 1

_goMethod · 0.95

Tested by

no test coverage detected