文件名称:m1.七彩蟒蛇绘制.py
文件大小:370B
文件格式:PY
更新时间:2023-06-12 10:49:55
python.七彩蟒蛇绘制
#Pyhon绘制七彩蟒蛇 import turtle turtle.setup(650,350,200,200) turtle.fd(-250) turtle.pensize(25) turtle.pencolor("purple") c=["red","yellow","green","blue"] turtle.seth(-40) for i in range(4): turtle.pencolor(c[i]) 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)