巨蟒

Python蟒蛇绘制实例

℡╲_俬逩灬. 提交于 2020-02-27 15:14:58
Python的蟒蛇绘制 代码如下: #PythonDraw.py import turtle turtle . setup ( 650 , 350 , 200 , 200 ) turtle . penup ( ) turtle . fd ( - 250 ) turtle . pendown ( ) turtle . pensize ( 25 ) turtle . pencolor ( "blue" ) 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 ( ) 来源: CSDN 作者: 杜小前 链接: https://blog.csdn.net/Du798566/article/details/104532851

python 蟒蛇

余生长醉 提交于 2019-12-01 21:39:58
import turtle turtle.setup(650,350,200,200) turtle.penup() turtle.fd(-250) turtle.pendown() turtle.pensize(25) turtle.pencolor("purple") 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() 来源: https://www.cnblogs.com/claudia529/p/11717619.html