Python蟒蛇绘制 |
您所在的位置:网站首页 › python蟒蛇绘制程序代码 › Python蟒蛇绘制 |
方式一: #e2.1DrawPython.py import turtle turtle.penup(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) 方式二: #e2.2DrawPython.py from turtle import * setup(650,350,200,200) penup() fd(-250) pendown() pensize(25) pencolor("purple") seth(-40) for i in range(4): circle(-40,80) circle(-40,80) circle(40,80/2) fd(40) circle(16,180) fd(40 * 2/3) |
今日新闻 |
推荐新闻 |
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |