01.初始python
1、turtle画图
import turtle turtle.pensize(4) turtle.pencolor('red') turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.right(90) turtle.forward(100) turtle.mainloop() #启动事件循环,必须是乌龟图形程序中的最后一句(使图案画完了不会直接关闭绘图窗口)