Great emphasis is a function of turtle graphics library, can be used to draw various patterns required, but when a series of problems need to be calculated using a good angle.
Code (from "the Python programming language") as follows:
operation result: