点击此处查看视频:http://v.douyin.com/RCY8GD/
import turtle as t
t.setup(450,300)
t.pensize(4)
t.color('black')
'衣服身子'
t.speed(1)
t.fillcolor('#808080')
t.begin_fill()
t.goto(-70,30)
t.right(180)
t.circle(5,180)
t.right(180)
t.circle(10,180)
t.right(180)
t.circle(5,180)
t.end_fill() t.speed(10)
t.fillcolor('#7D916F')
t.begin_fill()
t.goto(15,0)
t.left(45)
t.fd(10)
t.right(90)
t.circle(5)
t.fd(5)
t.right(20)
t.fd(5)
t.right(40)
t.fd(10)
t.right(50)
t.fd(20)
t.left(60)
t.fd(10)
t.right(80)
t.fd(70)
t.right(90)
t.fd(25)
t.end_fill() '外侧头发' t.penup()
t.goto(10,80)
t.pendown()
t.fillcolor('#2A3025')
t.begin_fill()
t.circle(5,150)
t.right(150)
t.circle(5,150)
t.right(150)
t.circle(5,120)
t.right(100)
t.circle(5,120)
t.right(100)
t.circle(5,120)
t.right(90)
t.circle(5,120)
t.right(150)
t.circle(5,120)
t.right(90)
t.circle(5,120)
t.right(100)
t.circle(5,120)
t.right(90)
t.circle(5,120)
t.right(150)
t.circle(5,120)
t.right(90)
t.circle(5,120)
t.right(100)
t.circle(10,90)
t.fd(7)
t.end_fill() '内测头发' t.penup()
t.goto(10,80)
t.pendown()
t.fillcolor('white')
t.begin_fill()
t.goto(10,76)
t.right(150)
t.fd(10)
t.circle(20,50)
t.right(30)
t.fd(5)
t.left(60)
t.fd(10)
t.right(60)
t.fd(5)
t.left(70)
t.fd(19)
t.right(60)
t.fd(3)
t.right(60)
t.fd(3)
t.circle(10,200)
t.end_fill() '鼻子'
t.penup()
t.goto(10,76)
t.pendown()
t.fillcolor('white')
t.begin_fill()
t.goto(17,76)
t.right(45)
t.fd(2)
t.right(45)
t.fd(5)
t.left(90)
t.fd(10)
t.right(90)
t.fd(8)
t.right(80)
t.fd(13) '嘴'
t.left(150)
t.fd(10)
t.fillcolor('white')
t.end_fill() '热狗'
t.fillcolor('#FF8247')
t.begin_fill()
t.left(35)
t.fd(40)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.left(5)
t.fd(40)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.right(30)
t.fd(9)
t.end_fill() '眼睛'
t.penup() t.pensize(2) t.goto(0,70)
t.pendown() t.goto(-4,70)
t.goto(-8,68)
t.penup()
t.goto(-5,60)
t.pendown()
t.circle(1,360)
t.goto(-5,60)
t.pendown()
t.circle(2,360) t.penup()
t.goto(100,-20)
t.pendown()

turtle画王思聪吃热狗(杨艳春,何金凝小组)的更多相关文章

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

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

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

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

  3. python3 turtle 画国际象棋棋盘

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

  4. day 03 turtle 画鹅

    turtle 画鹅 import turtle t=turtle turtle.speed(10) t. setup(800,600) #画头 turtle.penup() turtle.goto(0 ...

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

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

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

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

  7. 用python turtle画玫瑰

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

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

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

  9. 用python的turtle画分形树

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

随机推荐

  1. ZooKeeper Getting Started Guide

    http://zookeeper.apache.org/doc/trunk/zookeeperStarted.html What is ZooKeeper? ZooKeeper is a centra ...

  2. IOS中多线程的总结

    首先要知道线程和进程的区别.一个系统上运行的每一个应用程序都是一个线程.而进程中要执行的任务都是在线程上来实现的,所以说线程是进程的最小执行单元. 进程最少要有一个线程.多线程,顾名思义就是多条线程. ...

  3. JS对象1

    1 String对象 字符串创建 (1) 直接创建 var s="hello"; console.log(s); console.log(typeof s) >> he ...

  4. Wireshark简单使用教程2——附视频

    视频链接https://www.bilibili.com/video/av35336089/ 目录 对抓取的流量包进行简单的说明 Wireshark的捕获过滤器和显示过滤器 内容 1.对抓取的流量包进 ...

  5. Java作业三(2017-9-25)

    /*程序员龚猛*/ 作业1 public class Variable_Demo$Long{ public static void main(String[]args { int i=3; long ...

  6. 2018-2019-2 20165311《网络对抗技术》Exp5 MSF基础应用

    <网络对抗技术>Exp5 MSF基础应用 实验目的 实验内容 一个主动攻击实践(ms08_067) 一个针对浏览器的攻击(ms11_050) 一个针对客户端的攻击(adobe_toolbu ...

  7. jQuery效果------隐藏hide()/显示show()

    hide()和show() hide():隐藏文本. show():显示文本. 语法: $(selector).hide(speed,callback); $(selector).show(speed ...

  8. Math工具类

    public static void main(String[] args) { // 工具类,所有方法都以静态方法提供,没有实例存在的意义 // 不提供任何实例的方法,代表当前类属于无状态的. // ...

  9. 现代IM系统中的消息系统架构 - 架构篇

    https://mp.weixin.qq.com/s/sAlI8MCIKUSj5KbcT3W-Lw 现代IM系统中的消息系统架构 - 架构篇 原创: 木洛 云栖社区 1周前

  10. 《Redis 使用规范》

    一:Redis 概述 - Redis 是内存级别的数据库,在一台普通电脑上,Redis 3.X 便可以读取 10 万个键值对(现在的Redis官方版本已经更新到了5.X,性能会更好). 二:关于Red ...