导入

encoding=utf-8
from turtle import *

设置画笔

pensize(1)
speed(20)
pencolor('green')

左1红色

penup()
goto(0,300)
fillcolor('red')
begin_fill()
seth(180)
pd()
pencolor('orange')
circle(300,90)
seth(90)
circle(-50,180)
seth(90)
circle(radius=-330,extent=66)
end_fill()

左2橙色

penup()
goto(-200,0)
seth(90)
pensize(1)
fillcolor('orange')
begin_fill()
pd()
circle(radius=-330,extent=66)
goto(0,300)
seth(233)
circle(radius=500,extent=38)
goto(-100,0)
seth(90)
circle(50,180)
end_fill()

左3黄色

penup()
goto(-100,0)
seth(90)
pensize(1)
fillcolor('yellow')
begin_fill()
pd()
circle(radius=-500,extent=37)
goto(0,300)
seth(270)
pensize(3)
forward(300)
seth(90)
pensize(1)
circle(50,180)
end_fill()

右3绿色

penup()
goto(100,0)
seth(90)
pensize(1)
fillcolor('green')
begin_fill()
pd()
circle(radius=500,extent=37)
goto(0,300)
seth(270)
pensize(3)
forward(300)
seth(90)
pensize(1)
circle(-50,180)
end_fill()

右2蓝色

penup()
goto(200,0)
seth(90)
pensize(1)
fillcolor('blue')
begin_fill()
pd()
circle(radius=330,extent=66)
goto(0,300)
seth(-53)
circle(radius=-500,extent=37)
goto(100,0)
seth(90)
circle(-50,180)
end_fill()

右1紫色

penup()
goto(200,0)
fillcolor('purple')
begin_fill()
seth(90)
pensize(1)
pd()
pencolor('orange')
circle(radius=330,extent=66)
goto(0,300)
seth(0)
circle(-300,90)
seth(90)
circle(50,180)
end_fill()

手柄及伞尖

pu()
goto(0,300)
seth(90)
pensize(9)
pd()
pencolor('blue')
forward(20)
pu()
seth(270)
pensize(5)
forward(310)
pd()
forward(290)
pensize(8)
forward(10)
circle(20,180)

七彩雨伞

penup()
goto(100, 300)
pencolor('red')
write("七彩雨伞", align='left', font=('fangsong', 28, 'normal'))hideturtle()
done()

效果图

turtle画七彩雨伞相关推荐

  1. python turtle画熊-Python turtle画图库画姓名实例

    *****看一下我定义的change()和run()函数****** 绘图坐标体系: 作用:设置主窗体的大小和位置 ? 1 turtle.setup(width, height, startx, st ...

  2. python turtle画椭圆-Python易学就会(五)turtle绘制椭圆与递归

    前两篇文章基本涵盖了turtle的大部分功能,同时也借由对turtle功能的展示,厘清了Python的一些语法特点,以利于新手入门.但是短短几个例子,阐述得还是有限,这里再展开两个知识点,一方面对tu ...

  3. python画树叶-使用Python turtle画分形树叶图

    关于使用Python的turtle画树叶的代码. 感兴趣的可以自己了解一下分形树叶的数学几何原理--含概率的迭代函数系统.代码不难,关键是数学原理哦~还有,绘制过程有助于对代码和数学原理理解,大家动手 ...

  4. 用python的turtle画圆-(python海龟绘图怎么增加每次画圆的半径)

    Python 如何调用graphics库画圆弧,半圆等 import turtle turtle.left(135) turtle.circle(120,90) turtle.done() pytho ...

  5. python turtle画椭圆-【python turtle如何画椭圆】

    python turtle画4个同心圆方法 from turtle import * def Circle(radius,angle,length): for i in range(length): ...

  6. python画椭圆turtle_Python turtle画图库画姓名实例

    *****看一下我定义的change()和run()函数****** 绘图坐标体系: 作用:设置主窗体的大小和位置 turtle.setup(width, height, startx, starty ...

  7. 如何用python画一个心形图_求问怎样用python/python turtle画“心”

    展开全部 python turtle画52614个同心圆方法 import turtle #draw first circle turtle.penup() turtle.goto(0,-200) t ...

  8. python turtle画房子详细解释_[宜配屋]听图阁

    我就废话不多说了,直接上代码吧! import turtle t=turtle.Turtle() turtle.Turtle().screen.delay(0) tleft=turtle.Turtle ...

  9. 用Python标准库turtle画一只老虎,祝您新年虎虎生威,大吉大利

    用Python标准库turtle画一只老虎,祝您新年虎虎生威,大吉大利! 虎年到了,祝大家新年虎虎生威!大吉大利! 去年我用Python画了一头金牛,参考:https://blog.csdn.net/ ...

最新文章

  1. 旷视提双边分支网络BBN:攻坚长尾分布的现实世界任务 | CVPR 2020 Oral
  2. MogileFS高级应用(二)最后有疑问
  3. Angular2+ 结构型指令
  4. 信息编码:位操作布尔值编码
  5. delphi批量存入多媒体字段 遇到内存溢出的坑
  6. php use as是什么意思,use关键字在PHP中的几种用法
  7. Python编程专属骚技巧9
  8. C++ 简单的 Tcp 实现[socket] 服务器端与客户端通信
  9. 3月14日dnf服务器维护,DNF体验服3月14日更新介绍 肝深渊送爆肝王称号!
  10. Linux内核分析:recv、recvfrom、recvmsg函数实现
  11. 计算机考试画箭头,几何画板如何画箭头 绘制方法介绍
  12. 程序员计算器HEX、EDC、OCT的意思
  13. 【中学】寻找阿姆斯特朗数
  14. ubuntu linux 教程 pdf,Ubuntu 12.04 菜鸟完全使用教程(二) PDF
  15. JavaScript基础及画布
  16. H.264中SPS、PPS和IDR
  17. oracle计算timestamp差,Oracle 计算timestamp和date类型的时间差
  18. Matplotlib——绘图的几个案例_2013-2021年商业银行不良贷款率变化情况_2014-2021年上半年我国商业银行总资产变化情况_2015-2021年我国商业银行净利润变化情况
  19. 【NCL】shea_util.ncl只能load一次
  20. “一起吧”低调上线,百度社交还有机会吗?

热门文章

  1. SpringBoot配置文件application.yml数据库信息加密
  2. mysql从库并行,MySQL 并行复制从库发生自动重启分析
  3. centos 搭建open v批n以及使用 + frp
  4. 西工大计算机学院优秀毕业生,榜样力量 你的女神是学霸——记航天学院2019届本科优秀毕业生蔡宜伦...
  5. 嵌入式培训学校哪个好?学习嵌入式好就业吗?
  6. 2. android 直接使用hal库播放pcm demo
  7. windows XP下忘记管理员密码的非常有效的解决办法
  8. C51读写W25Q测试通过
  9. URL短链地址生成器Pckd
  10. html中video作为banner的设置