turtle 画鹅

import turtle
t=turtle
turtle.speed(10)
t. setup(800,600) #画头 turtle.penup()
turtle.goto(0,100)
turtle.pendown()
turtle.pensize(20)
turtle.fillcolor('black')
turtle.begin_fill()
turtle.circle(80,360)
turtle.end_fill() #画肚子
turtle.up()
turtle.goto(-70,130)
# turtle.pencolor("red") #找画笔
turtle.seth(-125)
turtle.pendown()
turtle.pensize(10)
turtle.circle(300,60)
turtle.up() turtle.goto(70,130)
# turtle.pencolor("red")
turtle.down()
turtle.circle(-320,60)
# turtle.pencolor("red")
turtle.seth(-180)
turtle.circle(-450,18) #画脚
turtle.up()
turtle.pencolor("yellow") turtle.seth(-100)
turtle.pendown()
turtle.fillcolor("yellow")
turtle.begin_fill()
turtle.fd(50)
turtle.seth(30)
turtle.fd(63)
turtle.end_fill() turtle.seth(0)
turtle.up() turtle.fd(50)
turtle.seth(-70)
turtle.pendown()
turtle.fillcolor("yellow")
turtle.begin_fill()
turtle.fd(50)
turtle.seth(60)
turtle.fd(50)
turtle.end_fill()
turtle.up() #画手 turtle.goto(125,30)
turtle.down()
turtle.pencolor("black")
turtle.seth(-65)
turtle.pensize(50)
turtle.fd(100) turtle.up()
turtle.goto(-135,30)
turtle.down()
turtle.seth(-120)
turtle.fd(100)
turtle.up() #围巾
turtle.goto(-70,120)
turtle.seth(-60)
turtle.down()
turtle.pencolor("red")
turtle.pensize(20)
turtle.circle(80,125) #画眼
turtle.up()
turtle.goto(-20,190)
turtle.down()
turtle.pencolor("white")
turtle.pensize(3)
turtle.fillcolor('white')
turtle.begin_fill()
turtle.circle(20,360)
turtle.end_fill() turtle.up()
turtle.goto(60,190)
turtle.down()
turtle.fillcolor('white')
turtle.begin_fill()
turtle.circle(20,360)
turtle.end_fill() #画眼珠子 turtle.pencolor("black")
turtle.up()
turtle.goto(40,200)
turtle.down()
turtle.pensize(3)
turtle.circle(1,360) turtle.up()
turtle.goto(-40,200)
turtle.down()
turtle.circle(1,360) #画嘴
turtle.up()
turtle.goto(-35,160)
turtle.down()
turtle.pencolor("yellow")
turtle.seth(0)
turtle.fillcolor('yellow')
turtle.begin_fill()
turtle.fd(80)
turtle.seth(-145)
turtle.fd(50)
turtle.seth(145)
turtle.fd(50)
turtle.end_fill() turtle.up()
turtle.goto(200,200) turtle.done()

day 03 turtle 画鹅的更多相关文章

  1. python运用turtle 画出汉诺塔搬运过程

    python运用turtle 画出汉诺塔搬运过程 1.打开 IDLE 点击File-New File 新建立一个py文件 2.向py文件中输入如下代码 import turtle class Stac ...

  2. python3 turtle 画国际象棋棋盘

    python3 turtle 画国际象棋棋盘 #!/usr/bin/env python # -*- coding:utf-8 -*- # Author:Hiuhung Wan import turt ...

  3. *【Python】【demo实验31】【练习实例】【使用turtle画小猪佩奇】

    如下图小猪佩奇: 要求使用turtle画小猪佩奇: 源码: # encoding=utf-8 # -*- coding: UTF-8 -*- # 使用turtle画小猪佩奇 from turtle i ...

  4. 【Python】【demo实验29】【练习实例】【使用turtle画五角星】

    原题: 使用turtle画五角星: 我的代码: #!/usr/bin/python # encoding=utf-8 # -*- coding: UTF-8 -*- from turtle impor ...

  5. 使用turtle画故宫(伍奇,侯俊豪小组)

    这个代码主要有两个部分,第一部分是画出故宫,第二部分是用random函数随机画心,故宫部分设置多个函数和循环再进行颜色填充即可完成. 此处为视频链接 from turtle import* impor ...

  6. 用python turtle画玫瑰

    1.turtle 库 2.画玫瑰的代码: import turtle turtle.penup() turtle.left() turtle.fd() turtle.pendown() turtle. ...

  7. Python之turtle画同心圆和棋盘

    画饼图 import turtle t = turtle.Pen() for i in range(5): t.penup() t.goto(0, -i*30) t.pendown() t.circl ...

  8. 用python的turtle画分形树

    由于分形树具有对称性,自相似性,所以我们可以用递归来完成绘制.只要确定开始树枝长.每层树枝的减短长度和树枝分叉的角度,我们就可以把分形树画出来啦!! 代码如下: # -*- coding: utf-8 ...

  9. python 用turtle 画小猪佩奇

    from turtle import * def nose(x,y):#鼻子 penup()#提起笔 goto(x,y)#定位 pendown()#落笔,开始画 setheading(-30)#将乌龟 ...

随机推荐

  1. amazeUI modal 模态框 关闭属性

    $('#my-prompt').modal({ relatedTarget: this, closeViaDimmer: false, // 点击外部空白处不关闭弹窗 closeOnConfirm:f ...

  2. service 方法和doGet、doPost方法的区别

    Service方法和doGet和doPost方法的区别service:     可以处理get/post方式的请求,如果servlet 中有service方法,会优先调用service方法进行处理do ...

  3. Tomcat部署WEB应用方式

    罗列在Tomcat部署web应用的几种方法,供以后翻阅,本博文以helloapp应用为例 Tomcat目录介绍 简单目录介绍如下 bin目录:包含tomcat启动/关闭等脚本,支持linux.wind ...

  4. 简单谈一谈Java内部类的使用原因

    使用内部类的原因 学习总得知其所以然,前面的一篇文章中我有提到过关于java内部类的几种用法以及一些示例,但是不明白内部类具体可以做什么,显然学习起来很渺茫,今天的文章简单说一说使用内部类的几个原因, ...

  5. [转帖]Postgresql的csv日志设置

    Postgresql的csv日志设置 2012年06月16日 09:27:00 weixin_34406796 阅读数 24   原文链接:https://my.oschina.net/Kenyon/ ...

  6. [数据结构] - ArrayList探究

    一 概述 ArrayList可以理解为动态数组,与java的数组相比,它的容量能动态曾长,ArrayList是List接口的可变数组的实现,允许包括null值在内的所有元素.除了实现List接口外,此 ...

  7. java源码 -- LinkedHashMap

    一.概述 LinkedHashMap 继承自 HashMap,在 HashMap 基础上,通过维护一条双向链表,解决了 HashMap 不能随时保持遍历顺序和插入顺序一致的问题. 除此之外,Linke ...

  8. Python笔记008函数(2)

    1.        昨日内容回顾: def 函数(): 函数体 return 值 如果不写return,默认返回None.可以单独返回一个值,也能够以元组的形式返回多个值.(不要把print和retu ...

  9. 《统计学习方法》极简笔记P4:朴素贝叶斯公式推导

    <统计学习方法>极简笔记P4:朴素贝叶斯公式推导 朴素贝叶斯基本方法 通过训练数据集 T={(x_1,y_1),(x_2,y_2),(x_N,y_N)...,(x_1,y_1)} 学习联合 ...

  10. go hello world第一个程序

    main 函数所在的包名必须使用main import "fmt"  导入包fmt  fmt包包含了Println方法的定义 func main() 程序运行入口方法和c语言相似 ...