zoukankan      html  css  js  c++  java
  • 玫瑰花绘制

    import turtle as t
    t.speed(10)
    t.penup()
    t.goto(0,200)
    t.pendown()
    t.bgcolor('red')
    t.setup(800,1500,0,0)
    t.circle(10,120)
    t.fd(5)
    t.seth(180)
    t.circle(30,80)
    t.seth(320)
    t.circle(45,100)
    t.seth(110)
    t.circle(50,120)
    t.seth(260)
    t.fd(50)
    t.circle(60,90)
    t.seth(190)
    t.circle(40,-120)
    t.seth(30)
    t.circle(100,90)
    t.seth(240)
    t.fd(40)
    t.seth(107)
    t.fd(60)
    t.seth(180)
    t.circle(30,-98)
    t.seth(240)
    t.penup()
    t.fd(25)
    t.pendown()
    t.seth(220)
    t.circle(81,50)
    t.circle(81,30)
    t.seth(170)
    t.circle(-130,60)
    t.circle(-110,25)
    t.seth(300)
    t.fd(25)
    t.seth(311)
    t.penup()
    t.fd(145)
    t.pendown()
    t.circle(-300,60)
    t.fd(80)
    t.seth(85)
    t.penup()
    t.fd(280)
    t.pendown()
    t.seth(10)
    t.circle(150,15)
    t.seth(80)
    t.fillcolor('green')
    t.begin_fill()
    t.circle(-60,100)
    t.end_fill()
    t.seth(260)
    t.begin_fill()
    t.circle(-60,100)
    t.end_fill()
    t.seth(20)
    t.circle(150,25)
    t.seth(240)
    t.penup()
    t.fd(150)
    t.pendown()
    t.seth(170)
    t.circle(-150,15)
    t.seth(110)
    t.begin_fill()
    t.circle(60,100)
    t.end_fill()
    t.seth(290)
    t.begin_fill()
    t.circle(60,100)
    t.end_fill()
    t.seth(160)
    t.circle(-150,20)
    

      结组对象:孙悦、文雨

  • 相关阅读:
    guzzle 中间件原理
    K8S-K8S 环境搭建
    K8S-k8s 理念知识
    云计算的概念
    Linux-DHCP 交互的过程
    linux-怎么踢出系统当前已连接的用户
    linux-Centos 搭建http yum源
    linux-硬链接与软连接
    linux-centos网络配置bond
    linux-dd 一个测试文件
  • 原文地址:https://www.cnblogs.com/Jasonwstar/p/7728257.html
Copyright © 2011-2022 走看看