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

Method pos

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

Return the turtle's current location (x,y), as a Vec2D-vector. Aliases: pos | position No arguments. Example (for a Turtle instance named turtle): >>> turtle.pos() (0.00, 240.00)

(self)

Source from the content-addressed store, hash-verified

1700 self._rotate(angle)
1701
1702 def pos(self):
1703 """Return the turtle's current location (x,y), as a Vec2D-vector.
1704
1705 Aliases: pos | position
1706
1707 No arguments.
1708
1709 Example (for a Turtle instance named turtle):
1710 >>> turtle.pos()
1711 (0.00, 240.00)
1712 """
1713 return self._position
1714
1715 def xcor(self):
1716 """ Return the turtle's x coordinate.

Callers 1

writeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected