刚开始学Python,画个玫瑰花练练手,正好今天也是情人节

我自认为还是挺好看的,感觉比我搜到的那几个画出来的强
代码如下

import turtle as t
t.setup(1100,1000)
t.hideturtle()
t.speed(11)
t.penup()
t.goto(50,-450)
t.pensize(5)
t.pencolor("black")
t.seth(140)
t.pendown()
t.speed(10)
t.circle(-300,60)
t.fd(100)
#jiaodu80
#1ye
t.seth(10)
t.fd(50)
t.fillcolor("green")
t.begin_fill()
t.right(40)
t.circle(120,80)
t.left(100)
t.circle(120,80)
t.end_fill()
t.seth(10)
t.fd(90)
t.speed(11)
t.penup()
t.fd(-140)
t.seth(80)
#2ye
t.pendown()
t.speed(10)
t.fd(70)
t.seth(160)
t.fd(50)
t.fillcolor("green")
t.begin_fill()
t.right(40)
t.circle(120,80)
t.left(100)
t.circle(120,80)
t.end_fill()
t.seth(160)
t.fd(90)
t.speed(11)
t.penup()
t.fd(-140)
t.seth(80)
t.pendown()
t.speed(10)
#
t.fd(100)
#1ban
t.seth(-20)
t.fillcolor("crimson")
t.begin_fill()
t.circle(100,100)
t.circle(-110,70)
t.seth(179)
t.circle(223,76)
t.end_fill()
#2ban
t.speed(11)
t.fillcolor("red")
t.begin_fill()t.left(180)
t.circle(-223,60)
t.seth(70)
t.speed(10)
t.circle(-213,15)#55
t.left(70)#125
t.circle(200,70)
t.seth(-80)
t.circle(-170,40)
t.circle(124,94)
t.end_fill()
#
t.speed(11)
t.penup()
t.right(180)
t.circle(-124,94)
t.circle(170,40)
t.pendown()
t.speed(10)t.seth(-60)
t.circle(175,70)t.seth(235)
t.circle(300,12)
t.right(180)
t.circle(-300,12)t.seth(125)
t.circle(150,60)t.seth(70)
t.fd(-20)
t.fd(20)t.seth(-45)
t.circle(150,40)
t.seth(66)
t.fd(-18.5)
t.fd(18.5)t.seth(140)
t.circle(150,27)
t.seth(60)
t.fd(-8)t.speed(11)
t.penup()
t.left(20.8)
t.fd(-250.5)#3bant.pendown()
t.speed(10)
t.fillcolor("crimson")
t.begin_fill()
t.seth(160)t.circle(-140,85)
t.circle(100,70)
t.right(165)
t.circle(-200,32)
t.speed(11)
t.seth(-105)
t.circle(-170,14.5)
t.circle(123,94)
t.end_fill()

Python玫瑰花绘制相关推荐

  1. Python 玫瑰花绘制

    import turtle as t # 定义一个曲线绘制函数 def DegreeCurve(n, r, d=1):for i in range(n):t.left(d)t.circle(r, ab ...

  2. python绘制立体玫瑰花-Python 玫瑰花绘制

    import turtle # 设置初始位置 turtle.penup() turtle.left(90) turtle.fd(200) turtle.pendown() turtle.right(9 ...

  3. 用python画立体玫瑰花-Python 玫瑰花绘制

    import turtle # 设置初始位置 turtle.penup() turtle.left(90) turtle.fd(200) turtle.pendown() turtle.right(9 ...

  4. python表白玫瑰花绘制——情人节表白(亲测)

    python表白玫瑰花绘制--情人节表白 搬运不易,路过的各位大佬请点个赞 python表白玫瑰花绘制--情人节表白 python表白玫瑰花绘制--情人节表白 一.玫瑰花绘制-深红色 二.玫瑰花绘制- ...

  5. python表白玫瑰花绘制——情人节表白

    python表白玫瑰花绘制--情人节表白 搬运不易,路过的各位大佬请点个赞 python表白玫瑰花绘制--情人节表白 python表白玫瑰花绘制--情人节表白 一.玫瑰花绘制-深红色 二.玫瑰花绘制- ...

  6. python从入门到入魔第八天——turtle库使用(含玫瑰花绘制实例)

    turtle库的作用 python 提供画图工具标准库:turtle库包绘图坐标体系.画笔控制函数和形状绘制函数,用来绘制想要的图画,turtle库的调用方式参考Python从入门到入魔第五天--ji ...

  7. Python实例16:玫瑰花绘制

    Python实例16:玫瑰花绘制 需求:用python绘制一朵玫瑰花:输入:想象力:输出:玫瑰花: 绘制机理:turtle基本图形绘制: 绘制思想:因人而异: 9.5.1 实例展示 #9.5.1 im ...

  8. 【Python】绘制三维立体图

    平常我们看到的物体一般是三维空间中的立体图形,今天跟大家一起来学习用Python绘制立体图形.    一.导入绘图数据 首先导入绘图所需的数据. import os import pandas as ...

  9. MATLAB 3D玫瑰花绘制(内附旋转版本)

    参考博文:[Art & Science] 用python绘制3D花(二) 另:旋转版本在文章最后 目录 1 玫瑰花绘制 绘制效果 完整代码 2 月季花绘制 绘制效果 完整代码 3 玫瑰配色 颜 ...

  10. 人机交互到艺术设计及玫瑰花绘制实例

    Python库之图形用户界面 Riverbank Computing | Introduction   Welcome to wxPython! | wxPython  Overview - PyGO ...

最新文章

  1. 大学python和vb哪个简单-vb和python哪个速度快
  2. ITK:提取网格边界上的顶点
  3. 连接查询_左连接/右连接/全连接的区别
  4. 海洋知识科普相关调研
  5. java Linux icepdf,ICEpdf 6.1.1发布,Java的PDF类库
  6. HDU 1800 贪心
  7. 首次出现日访问量突破10000,祝贺
  8. Python 从零开始制作自己的声音 - wave模块读写wav文件详解
  9. comsol 5.3 matlab,COMSOL5.3在Linux下的安装
  10. lzg_ad:XPE常见问题FAQ
  11. 235款鼠标样式免费下载
  12. TELEPORTSTONE.LUA --传送宝石
  13. 英文期刊催稿信模板_SCI论文催稿信模板
  14. 【构造】POJ-3295 Tautology
  15. Kafka-Zookeeper监控工具简介、安装及使用 03
  16. kernel hacking
  17. 育儿、亲子、教育、心灵鸡汤 ,读书分享连接汇总
  18. (转)跳一跳带火了小程序后 微信小程序电商的路越来越难走了!
  19. 【深度学习TPU+Keras+Tensorflow+EfficientNetB7】kaggle竞赛 使用TPU对104种花朵进行分类 第十八次尝试 99.9%准确率
  20. 微信中被举报的网页怎么打开 怎么打开被拦截的网址

热门文章

  1. 计算机前沿的英语词汇,计算机行业常用英语词汇
  2. 无lnternet_为什么无internet访问权限,无lnternet访问权限怎么办
  3. Java项目:人才管理系统(java+SpringBoot+FreeMarker+jpa+Mysql)
  4. java url链接超时_Java编程中HttpURLConnection的连接超时中的异常
  5. 手机电脑传文件?教你三种最简单的方法!
  6. 泛泛而谈:白话分布式一致性与共识算法
  7. html页面跳转传值原生,html页面跳转传递参数问题
  8. Uncaught SyntaxError The requested module ‘node_modules.vitevue.jsv=50ccac76‘ does not provide
  9. DlhSoft Kanban,WPF 的看板组件
  10. 《近代名老中医经验集》出版