点击此处查看视频: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. 前端性能优化 —— 添加Expires头

    简要:添加Expires头能有效的利用浏览器的缓存能力来改善页面的性能,能在后续的页面中有效避免很多不必要的Http请求,WEB服务器使用Expires头来告诉Web客户端它可以使用一个组件的当前副本 ...

  2. 关于ajax 返回值验证问题

    如果后台返回布尔值true时 前端 if(data==true){    //true 不能加引号  否则就变成了字符串了 alert(data+'操作成功!'+status); }

  3. 使用ajax分页查询

    controller: /** * 查询所有用户/查找指定用户 * 分页+搜索 * */@RequestMapping("/findClientBySize")@ResponseB ...

  4. 测试自动化学习3-python3简单操作

    1.列表操作 增 stu = []stus.append('lili') #在list的末尾增加一个元素 stus.insert(9,'yjk') #在指定的位置插入元素, 查 print('单个取, ...

  5. LeetCode 81 - 搜索旋转排序数组 II - [二分+暴力]

    假设按照升序排序的数组在预先未知的某个点上进行了旋转. ( 例如,数组 [0,0,1,2,2,5,6] 可能变为 [2,5,6,0,0,1,2] ). 编写一个函数来判断给定的目标值是否存在于数组中. ...

  6. mysql千万级数据量查询出所有重复的记录

    查询重复的字段需要创建索引,多个条件则创建组合索引,各个条件的索引都存在则不必须创建组合索引 有些情况直接使用GROUP BY HAVING则能直接解决:但是有些情况下查询缓慢,则需要使用下面其他的方 ...

  7. [crypto][ipsec] 简述ESP协议的sequence number机制

    预备 首先提及一个概念叫重放攻击,对应的机制叫做:anti-replay https://en.wikipedia.org/wiki/Anti-replay IPsec协议的anti-replay特性 ...

  8. js基础--数据类型

    1,数据类型 Number:包括小数与整数,负数,NaN ,Infinity无限大String字符串:‘abc’Boolean布尔值:true or falsenull 空undefined 未定义 ...

  9. numpy(二)

    通用函数: np.add  加 np.subtract  减 np.multiply  乘 np.divide  除 np.floor_divide  地板乘除法,取商 np.power  指数运算  ...

  10. 支持Linux系统的加密狗

    深思数盾 https://www.sense.com.cn/ 产品:精锐5 版本:标准版.精灵版.IE版.时钟锁 快速实现高安全度的软件保护,轻松定义多种授权模式1.防止软件盗版,防止逆向工程 通过增 ...