Python TurtleWorld configuration and simple test

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.

                       

Next step is system environment variables configuration.

 

 

 

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.

 

Testing code:

 

Output:

 

posted @ 2014-04-24 14:05  平静缓和用胸音说爱  阅读(522)  评论(0编辑  收藏  举报