TurtleWorld provides a set of functions for drawing lines by steering turtles around the screen. You can download Swampy from allendowney.com/swampy.

Unzip it into the site-packages folder. All third-party packages can be installed there.

    Python TurtleWorld configuration and simple test                   

Next step is system environment variables configuration.

 Python TurtleWorld configuration and simple test

 

Python TurtleWorld configuration and simple test

 

Then open the IDLE (Python GUI) to test if the module installed successfully.

Type form TurtleWorld import * and click enter, if no error occurs means the module TurtleWorld is installed successfully. Then you can continue to study this interface.

 Python TurtleWorld configuration and simple test

Testing code:

 Python TurtleWorld configuration and simple test

Output:

 Python TurtleWorld configuration and simple test

相关文章: