language is the most suitable language in the era of artificial intelligence, and more and more Рpeople begin to learn it. In order to improve the learning interest and give full play to the creativity of learners, this Рpaper designs and implements a graphical interface software based on Turtle function library. With this software, usРers can use the mouse to draw graphics, and the software will automatically generate the corresponding Python code Рaccording to the type of graphics, line, color and other information. By comparing with the graphics and generated Рcode, it can help learners quickly and easily master the usage of the commonly used functions of Turtle and the basРic usage of Python program.РKeywords: Python language ; Turtle library ; auto generated code ; graphic interface