赞
踩
代码实例:
#例子是MOOC上北京理工大学的python课程中的蟒蛇绘制源码 #PythonDraw.py import turtle turtle.setup(650,300) turtle.penup() turtle.fd(-250) turtle.pendown() turtle.pensize(10) turtle.pencolor("yellow") turtle.seth(-40) for i in range(4): turtle.circle(40,80) turtle.circle(-40,80) turtle.circle(40,80/2) turtle.fd(40) turtle.circle(16,180) turtle.fd(40 * 2/3) turtle.done()
效果如下:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。