turtle画王思聪吃热狗(杨艳春,何金凝小组)

点击此处查看视频: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()

原文地址:https://www.cnblogs.com/yyc9/p/9949394.html

时间: 2024-08-01 09:46:35

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

wallpaper engine王思聪吃热狗数字动态时钟电脑壁纸下载

壁纸名称:冷高轮时间王思聪吃热狗数字时钟 壁纸样式:梵高数字动态时钟,王思聪吃热狗数字动态时钟,手势数字动态时钟,大写数字动态时钟,中文汉字动态时钟,麻将数字动态时钟,扑克数字动态时钟 电脑壁纸下载可在wallpaper engine或者upupoo上搜索全称“冷高轮时间‘ 电脑屏保可在冷高轮时间官网下载:lenggaolun.com(com前面是点不是句号) 手机APP可在android和ios各大应用市场搜索全称'冷高轮时间“下载 原文地址:https://www.cnblogs.com/l

冷高轮时间王思聪吃热狗数字时钟app安卓下载-全屏桌面显示

[应用名称]:冷高轮时间 [应用大小]:6.83 [支持平台]:安卓(Android),苹果(iOS) [时钟样式]男神数字,女神数字,梵高数字,王思聪吃热狗数字,大写数字,中文汉字,麻将数字,扑克数字. [软件介绍]:闲置手机,旧手机发光发亮 电脑屏保可在官网下载:lenggaolun.com(com前面不是句号是点) 电脑壁纸下载可在wallpaper engine或者upupoo上搜索全称“冷高轮时间‘ 手机APP可在android和ios各大应用市场搜索全称'冷高轮时间“下载 适合任何场

python学习之乌龟吃鱼and思聪吃热狗游戏

乌龟吃鱼游戏游戏规则:1). 假设游戏场景为范围(x,y)为0<=x<=10,0<=y<=102). 游戏生成1只乌龟和10条鱼, 它们的移动方向均随机3). 乌龟的最大移动能力为2(它可以随机选择1还是2移动),鱼儿的最大移动能力是1当移动到场景边缘,自动向反方向移动4). 乌龟初始化体力为100(上限), 乌龟每移动一次,体力消耗1当乌龟和鱼坐标重叠,乌龟吃掉鱼,乌龟体力增加20, 鱼暂不计算体力5). 当乌龟体力值为0(挂掉)或者鱼儿的数量为0游戏结束 01_turtle_f

用turtle画中国象棋棋盘

刚刚学习了<Python入门教程(一)--Python语言基础视频课程>(http://edu.51cto.com/course/12194.html) 中间有道作业就是用turtle画中国象棋棋盘,试了半天,终于画出来了,不知道是不是这么画的,所以贴上来,求指点,求更好的方法! #画中国象棋棋盘 import turtle import math turtle.speed(10)#绘图速度 a = 30 #每个格子的宽度 #绘制底板并上色 turtle.up() turtle.goto( -

python用turtle画国际象棋棋盘

python学习的练习 用turtle画的国际象棋棋盘 import turtle turtle.speed(10) a = 30 #画背景 turtle.up() turtle.goto( -10, -10) turtle.down() turtle.fillcolor("Khaki") turtle.begin_fill() turtle.fd( a * 8 + 20) turtle.left(90) turtle.fd( a * 8 + 20) turtle.left(90) t

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

如下图小猪佩奇: 要求使用turtle画小猪佩奇: 源码: # encoding=utf-8 # -*- coding: UTF-8 -*- # 使用turtle画小猪佩奇 from turtle import* def nose(x,y):#鼻子 penup()#提起笔 goto(x,y)#定位 pendown()#落笔,开始画 setheading(-30)#将乌龟的方向设置为to_angle/为数字(0-东.90-北.180-西.270-南) begin_fill()#准备开始填充图形 a

C++模拟Turtle画希尔伯特曲线

由于缺少支持库,本代码不可实际运行! 仅供思路研究. 1 void up() 2 { 3 turtle.forward(1); 4 } 5 void left() 6 { 7 turtle.left(90); 8 turtle.forward(1); 9 turtle.right(90); 10 } 11 void right() 12 { 13 turtle.right(90); 14 turtle.forward(1); 15 turtle.left(90); 16 } 17 void do

函数实例-turtle画树

# drawtree.py from turtle import Turtle, mainloop def tree(plist, l, a, f): """ plist is list of pens l is length of branch a is half of the angle between 2 branches f is factor by which branch is shortened from level to level.""&

python3 turtle 画国际象棋棋盘

#!/usr/bin/env python # -*- coding:utf-8 -*- # Author:Hiuhung Wan import turtle n = 60 # 每行间隔 x = -300 # x初始值 y = -300 # x初始值 turtle.speed(11) turtle.pensize(2) # 先画8*8的正方形,并按要求涂黑 for i in range(8): for j in range(1, 9): turtle.penup() turtle.goto(x