码迷,mamicode.com
首页 >  
搜索关键字:turtle    ( 708个结果
这是一朵美丽的玫瑰花
一开始和我的小伙伴讨论,后来又奋战到凌晨两点,其中填充颜色真是让我们煞费苦心。经过一系列努力,我们没用一次循环,全靠纯粹地画,终于完成了我们的抽象派玫瑰!! #神奇的抽象派玫瑰import turtleturtle.setup(0.8,0.8)turtle.pensize(3)turtle.penu ...
分类:其他好文   时间:2017-10-27 15:30:34    阅读次数:133
漂亮的玫瑰花
import turtle turtle.setup(0.75,0.75,0,0) turtle.begin_fill() turtle.fillcolor("red")#花瓣上色 turtle.circle(20,70) turtle.seth(150) turtle.circle(30,90) ... ...
分类:其他好文   时间:2017-10-27 01:33:12    阅读次数:162
绘制玫瑰花
import turtle turtle.setup(1000,800,200,200) turtle.speed(5) turtle.begin_fill() turtle.circle(40,60) turtle.seth(120) turtle.circle(40,50) turtle.lef... ...
分类:其他好文   时间:2017-10-25 21:31:26    阅读次数:185
python 的turtle 简易画图,第一次
import turtlebob = turtle.Turtle()#画四方形def square(t,length): for i in range(4): t.lt(90) t.fd(length)square(bob,200)#画多边形def polygon(t,length,n): for ...
分类:编程语言   时间:2017-10-25 16:36:21    阅读次数:239
玫瑰图
import turtle turtle.setup(0.4,0.9) turtle.hideturtle() turtle.color("black","red") turtle.begin_fill() turtle.circle(15,60) turtle.seth(140) turtle.c ...
分类:其他好文   时间:2017-10-24 18:26:58    阅读次数:196
python绘制玫瑰
import turtle turtle.fillcolor("red")turtle.begin_fill() turtle.circle(10,180)turtle.circle(25,100)turtle.left(60)turtle.circle(100,30)turtle.circle(2 ...
分类:编程语言   时间:2017-10-24 14:03:10    阅读次数:208
绘制玫瑰
import turtle turtle.setup(0.35,0.75) turtle.seth(90) turtle.penup() turtle.fd(200) turtle.seth(0) turtle.pendown() turtle.fillcolor("red") turtle.beg... ...
分类:其他好文   时间:2017-10-23 21:47:10    阅读次数:260
玫瑰绘制(结对作业)
import turtle turtle.setup(0.5,0.5,300,100) turtle.penup() turtle.goto(0,100) turtle.begin_fill() turtle.fillcolor("red") turtle.pendown() turtle.circ... ...
分类:其他好文   时间:2017-10-22 23:36:08    阅读次数:189
Python输入输出练习,运算练习,turtle初步练习
一、输出Hello World 二、求和运算 三、输入三角形的三边求面积 四、输入圆的半径,求面积 五、画没有颜色的五角星 六、画黄色五角星 from turtle import *fillcolor("yellow")begin_fill()while True:forward(200)left( ...
分类:编程语言   时间:2017-10-18 10:02:10    阅读次数:391
Python图形库Turtle
画笔绘制状态函数 函数 描述 pendown() 放下画笔 penup() 提起画笔,与pendown()配合使用 pensize(width) 设置画笔线条的粗细为指定大小 画笔运动函数 函数 描述 forward() 沿当前方向前进指定距离 backward() 沿当前相反方向后退指定距离 ri ...
分类:编程语言   时间:2017-10-06 23:14:21    阅读次数:237
708条   上一页 1 ... 49 50 51 52 53 ... 71 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!