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()

最新文章

  1. MATLAB命令大全
  2. Hibernate 简单使用
  3. BIEE 维表
  4. python在window下的Nginx部署
  5. Red hat 5挂载U盘
  6. LightOj_1317 Throwing Balls into the Baskets
  7. 使用DML语句【weber出品必属精品】
  8. 一个vbs文件将指定文件夹下的文件名输出到指定文件夹下
  9. (转)java 排序算法
  10. Java进制转换示例
  11. 《Google SRE》读后感
  12. Python3面向对象—点和矩形类
  13. 【汤鸿鑫 3D太极】5年目标规划(基本功、套路、实战搏击)
  14. 降维方法PCA与SVD的联系与区别
  15. B - 吉哥系列故事——恨7不成妻
  16. python获取当前文件路径以及父文件路径
  17. lua经典问题
  18. iis 发布mvc
  19. android studio 将自己的项目生成jar包
  20. 在线Python学习网站

热门文章

  1. thinkphp5 引用 phpass加密算法
  2. 搭建一个超好用的 cmdb 系统
  3. 使用pycharm调试django 打断点调试后台代码
  4. c#,回文数判断
  5. lamp和xampp和lampp的区别
  6. 并行forearch的使用及测试(Parallel.Foreach)
  7. java源码 -- TreeSet
  8. 【Docker】:docker安装ELK(logstash,elasticsearch,kibana)
  9. Error: errCode: -404011 cloud function execution error | errMsg: clou……错误
  10. Unity场景间数据传递方法