turtle.stamp()
Stamp a copy of the turtle shape onto the canvas at the current turtle position. Return a stamp_id for that stamp, which can be used to delete it by calling clearstamp(stamp_id).
>>> turtle.color("blue")>>> turtle.stamp()11>>> turtle.fd(50)turtle.clearstamp(stampid)
Parameters:
stampid – an integer, must be return value of previous stamp() callDelete stamp with given stampid.
>>> turtle.position()(150.00,-0.00)>>> turtle.color("blue")>>> astamp = turtle.stamp()>>> turtle.fd(50)>>> turtle.position()(200.00,-0.00)>>> turtle.clearstamp(astamp)>>> turtle.position()(200.00,-0.00)turtle.clearstamps(n=None)