import turtle

t = turtle.Turtle()

wn = turtle.Screen()

turtle.colormode(255)

t.hideturtle()

t.speed(0)

t.penup()

t.pensize(4)

t.goto(100,0)

t.pendown()

t.left(90)

t.color((0,0,0),(255,255,0))

#身体绘制上色

t.begin_fill()

t.forward(200)

t.circle(100,180)

t.forward(200)

t.circle(100,180)

t.end_fill()

#右眼睛绘制上色

t.pensize(12)

t.penup()

t.goto(-100,200)

t.pendown()

t.right(100)

t.circle(500,23)

t.pensize(3)

t.penup()

t.goto(0,200)

t.pendown()

t.seth(270)

t.color("black","white")

t.begin_fill()

t.circle(30)

t.end_fill()

t.penup()

t.goto(15,200)

t.pendown()

t.color("black","black")

t.begin_fill()

t.circle(15)

t.end_fill()

t.penup()

t.goto(35,205)

t.color("black","white")

t.begin_fill()

t.circle(5)

t.end_fill()

#左眼睛绘制上色

t.pensize(3)

t.penup()

t.goto(0,200)

t.pendown()

t.seth(90)

t.color("black","white")

t.begin_fill()

t.circle(30)

t.end_fill()

t.penup()

t.goto(-15,200)

t.pendown()

t.color("black","black")

t.begin_fill()

t.circle(15)

t.end_fill()

t.penup()

t.goto(-35,205)

t.color("black","white")

t.begin_fill()

t.circle(5)

t.end_fill()

#嘴绘制上色

t.penup()

t.goto(-20,100)

t.pendown()

t.seth(270)

t.color("black","white")

t.begin_fill()

t.circle(20,180)

t.left(90)

t.forward(40)

t.end_fill()

#裤子绘制上色

t.penup()

t.goto(-100,0)

t.pendown()

t.seth(0)

t.color("black","blue")

t.begin_fill()

t.forward(20)

t.left(90)

t.forward(40)

t.right(90)

t.forward(160)

t.right(90)

t.forward(40)

t.left(90)

t.forward(20)

t.seth(270)

t.penup()

t.goto(-100,0)

t.circle(100,180)

t.end_fill()

#左裤子腰带

t.penup()

t.goto(-70,20)

t.pendown()

t.color("black","blue")

t.begin_fill()

t.seth(45)

t.forward(15)

t.left(90)

t.forward(60)

t.seth(270)

t.forward(15)

t.left(40)

t.forward(50)

t.end_fill()

t.left(180)

t.goto(-70,30)

t.dot()

#右裤腰带

t.penup()

t.goto(70,20)

t.pendown()

t.color("black","blue")

t.begin_fill()

t.seth(135)

t.forward(15)

t.right(90)

t.forward(60)

t.seth(270)

t.forward(15)

t.right(40)

t.forward(50)

t.end_fill()

t.left(180)

t.goto(70,30)

t.dot()

#脚

t.penup()

t.goto(4,-100)

t.pendown()

t.seth(270)

t.color("black","black")

t.begin_fill()

t.forward(30)

t.left(90)

t.forward(40)

t.seth(20)

t.circle(10,180)

t.circle(400,2)

t.seth(90)

t.forward(20)

t.goto(4,-100)

t.end_fill()

t.penup()

t.goto(-4,-100)

t.pendown()

t.seth(270)

t.color("black","black")

t.begin_fill()

t.forward(30)

t.right(90)

t.forward(40)

t.seth(20)

t.circle(10,-225)

t.circle(400,-3)

t.seth(90)

t.forward(21)

t.goto(-4,-100)

t.end_fill()

#左手

t.penup()

t.goto(-100,50)

t.pendown()

t.seth(225)

t.color("black","yellow")

t.begin_fill()

t.forward(40)

t.left(90)

t.forward(35)

t.seth(90)

t.forward(50)

t.end_fill()

#右手

t.penup()

t.goto(100,50)

t.pendown()

t.seth(315)

t.color("black","yellow")

t.begin_fill()

t.forward(40)

t.right(90)

t.forward(36)

t.seth(90)

t.forward(50)

t.end_fill()

#

t.penup()

t.goto(0,-100)

t.pendown()

t.forward(30)

#

t.penup()

t.goto(0,-20)

t.pendown()

t.color("yellow")

t.begin_fill()

t.seth(45)

t.forward(20)

t.circle(10,180)

t.right(90)

t.circle(10,180)

t.forward(20)

t.end_fill()

#

t.penup()

t.color("black")

t.goto(-100,-20)

t.pendown()

t.circle(30,90)

t.penup()

t.goto(100,-20)

t.pendown()

t.circle(30,-90)

#头顶

t.penup()

t.goto(2,300)

t.pendown()

t.begin_fill()

t.seth(135)

t.circle(100,40)

t.end_fill()

t.penup()

t.goto(2,300)

t.pendown()

t.begin_fill()

t.seth(45)

t.circle(100,40)

t.end_fill()

用python画小黄人代码-Python turtle模块小黄人程序相关推荐

  1. python画七边形的角度_python之turtle模块-生化危机

    相信很多人都看过<生化危机>,对里面的太阳伞公司应该都不陌生.太阳伞公司的图标如下. 今天我们就用python的turtle模块来画这样一把太阳伞. 思路如下: 1. 太阳伞可以近似的看成 ...

  2. 用python turtle画小黄人源码_Python turtle模块小黄人程序

    import turtle t = turtle.Turtle() wn = turtle.Screen() turtle.colormode(255) t.hideturtle() t.speed( ...

  3. python动物重量排序_用python画简单的动物代码

    用python画简单的动物代码 发布时间:2020-04-30 14:57:42 来源:亿速云 阅读:344 作者:小新 今天小编给大家分享的是用python画简单的动物代码,相信很多人都不太了解,为 ...

  4. 用python画一束满天星花朵,python满天星绘制流程图

    大家好,小编来为大家解答以下问题,用python画一束满天星花朵,python满天星绘制流程图,今天让我们一起来看看吧! 1.用python画一百个同心圆的代码? import matplotlib. ...

  5. python画画用哪个软件_如何用python画韦恩图? 使用python的tutul工具,画一朵雏菊花...

    使用python的tutul工具,画一朵雏菊花 如何用python画韦恩图?不管什么时候,给心留一点空间.人生一世,不用什么都要去争,不是什么都要去抢,欲望少一点,满足多一点,这样才会活得潇洒一点,人 ...

  6. python的皮卡丘如何写代码,用python画皮卡丘的代码

    python皮卡丘编程代码 import turtledef getPosition(x, y): (x) (y) print(x, y)class Pikachu: def __init__(sel ...

  7. 圣诞节要来了,程序员女友用Python画圣诞树的浪漫代码作为最好的礼物

    我从来没有过过一个真正意义上的圣诞节. 没有拥有过圣诞树, 没有和恋人一起看过雪,也没有收过精心准备的圣诞礼物. 我给自己安排很多与节日无关的事来度过那一天. 尽管如此,我还是很期待圣诞节. 哈哈哈哈 ...

  8. python皮卡丘字符打印代码,python画皮卡丘的代码

    大家好,本文将围绕用python画一只可爱的皮卡丘展开说明,python皮卡丘字符打印代码是一个很多人都想弄明白的事情,想搞清楚python皮卡丘编程代码教程需要先了解以下几个事情. 1.python ...

  9. 用python画关系网络图-使用python画社交网络图实例代码

    在图书馆的检索系统中,关于图书的信息里面有一个是图书相关借阅关系图.跟这个社交网络图是一样的,反映了不同对象间的关联性. 利用python画社交网络图使用的库是 networkx,更多关于networ ...

  10. 怎么用python画一个皮卡丘,用python画皮卡丘的代码

    python皮卡丘编程代码 import turtledef getPosition(x, y): (x) (y) print(x, y)class Pikachu: def __init__(sel ...

最新文章

  1. 应用TP3.2.3的一些小问题(一)
  2. Atian inputmethod 输入法解决方案 方言与多语言多文字支持 英语汉字汉语阿拉伯文的支持 (au...
  3. v380云存储怎么用_云智中国-百度智能云薄磊:海量无限存储,助力产业智能化升级...
  4. Genymotion模拟器
  5. USB设备被识别流程【转】
  6. linux vi 中s 替换方法
  7. python读取配置文件 分段_python配置文件读取
  8. mysql 5.7 编译_MySQL5.7.20编译安装
  9. 中信建投软件测试,中信建投笔试经验-范例
  10. html怎么改表格背景,javascript修改表格背景色实例代码分享
  11. 华为LTC流程再造(BPR)的来龙去脉,看一篇文就够了!管理变革专家许浩明老师
  12. python画气泡图_用python 来绘制气泡图的简单技巧
  13. 聊天室之-----界面的问题用到的curses
  14. 计算机网络和信息安全-网络安全
  15. AtCoder Regular Contest 105 C - Camels and Bridge
  16. HDU-1493 QQpet exploratory park(概率+二维dp)
  17. 研究人员发现火星存在大量水冰积层,且距离地表只有几米
  18. 一文快速了解MassGrid网络
  19. 在 Python 中通过知识图谱进行语义搜索(spaCy 教程含源码)
  20. What will matter?

热门文章

  1. 计算机经常使用不维护,电脑维护注意三个细节,电脑用上十年都没问题,别说我没有告诉你...
  2. CMake添加QT库是出现Policy CMP0020 is not set“警告解决方法
  3. 对UML状态图转移事件的认识
  4. java 获取wifi强度_Android获取当前已连接的wifi信号强度的方法
  5. VIM插件配置——ctags/taglist/omnicppcomplete/winmanager
  6. ARM C/C++编译器
  7. 鉴源论坛丨民用飞机机载软件是如何表明适航符合性的
  8. Rhino 修剪命令
  9. 响铃:飘扬在德国的海尔旗帜是中国制造的世纪跨越
  10. C# 7z解压功能及问题