Python教程41:使用turtle画蜡笔小新

---------------turtle源码集合---------------

Python教程39:使用turtle画美国队长盾牌

Python教程38:使用turtle画动态粒子爱心+文字爱心

Python教程37:使用turtle画一个戴帽子的皮卡丘

Python教程36:海龟画图turtle写春联

Python源码35:海龟画图turtle画中国结

Python源码31:海龟画图turtle画七道彩虹

Python源码30:海龟画图turtle画紫色的小熊

Python源码29:海龟画图turtle画太极图

Python源码28:海龟画图turtle画熊猫

Python源码27:海龟画图turtle画动态圆舞曲

Python源码26:海龟画图turtle画向日葵

Python源码25:海龟画图turtle画小猪佩奇

Python源码24:使用海龟画图turtle画滑板

Python源码23:使用海龟画图turtle画小狗狗

Python源码22:使用海龟画图turtle画今天日期

Python源码21:使用海龟画图turtle画太阳,云朵,房子,绿树

Python源码20:使用海龟画图turtle画一个会动的星空

Python源码19:海龟画图turtle画螺旋的彩色的逐渐放大的文字

Python源码18:使用海龟画图turtle画捂脸表情

Python源码17:使用海龟画图turtle画五星红旗

Python源码16:使用海龟画图turtle画会动的时钟

Python源码15:使用海龟画图turtle画小黄人

Python源码14:使用海龟画图turtle画我的城堡

Python源码分享13:使用海龟画图turtle画一个会眨眼的皮卡丘

Python源码分享12:使用turtle画彩色六边形

Python源码分享11:使用海龟画图turtle画航天火箭

Python源码分享10:使用海龟画图turtle画哆啦A梦

Python源代码分享:02海龟画图五角星

Python源代码分享:03画一个奥运五环图

Python源代码分享:05使用turtle模块绘制一个彩色螺旋图案

Python源代码分享:07画满天繁星

Python源码分享08:使用turtle画一朵玫瑰花

Python源码分享10:使用海龟画图turtle画哆啦A梦

Python源码分享11:使用海龟画图turtle画航天火箭

Python源码分享12:使用turtle画彩色六边形
Python教程41:使用turtle画蜡笔小新_第1张图片

# @Author : 小红牛
# 微信公众号:WdPython
import turtle as t

t.setup(800, 500)
t.pensize(2)
t.colormode(255)
t.speed(5)
t.color('black', (255, 228, 181))
t.shape('turtle')
t.speed(5)
t.showturtle()
t.pu()
t.goto(-150, 10)
t.pd()
t.seth(0)
t.begin_fill()
t.left(135)
t.circle(-70, 85)
t.right(8)
t.circle(-85, 44)
t.left(10)
t.circle(40, 61)
t.right(15)
t.fd(20)
t.right(5)
t.circle(-40, 45)
t.left(6)
t.circle(-70, 25)
t.left(18)
t.circle(-80, 35)
t.left(10)
t.circle(-70, 27)
t.circle(-120, 54)
t.pu()
t.goto(82, 30)
t.pd()
t.left(140)
t.fd(20)
t.right(10)
t.circle(-20, 65)
t.seth(-50)
t.fd(5)
t.right(13)
t.circle(-50, 50)
t.right(10)
t.circle(-60, 25)
t.right(7)
t.circle(-50, 20)
t.circle(-10, 90)
t.pu()
t.goto(-150, 10)
t.pd()
t.color('black', (255, 228, 181))
t.right(130)
t.circle(90, 33)
t.right(16)
t.circle(370, 28)
t.end_fill()
t.color('black', 'black')
t.pu()
t.goto(-18, 180)
t.pd()
t.begin_fill()
t.right(30)
t.circle(-350, 19)
t.right(38)
t.circle(-300, 17)
t.left(135)
t.fd(23)
t.left(39)
t.circle(120, 63)
t.left(10)
t.circle(110, 28)
t.right(11)
t.circle(85, 14)
t.end_fill()
t.pu()
t.goto(-52, 151)
t.pd()
t.begin_fill()
t.right(205)
t.circle(110, 33)
t.circle(7, 130)
t.left(50)
t.circle(-110, 30)
t.circle(8, 140)
t.end_fill()
t.pu()
t.goto(48, 140)
t.pd()
t.begin_fill()
t.right(4)
t.circle(150, 18)
t.right(4)
t.circle(-6, 140)
t.right(28)
t.circle(-150, 19)
t.right(10)
t.circle(-10, 150)
t.end_fill()
t.pu()
t.goto(-69, 126)
t.pd()
t.left(70)
t.circle(-80, 37)
t.right(15)
t.circle(-25, 100)
t.pu()
t.goto(2, 91)
t.pd()
t.left(150)
t.circle(-70, 30)
t.right(10)
t.circle(-40, 60)
t.circle(-70, 20)
t.pu()
t.goto(-60, 110)
t.pd()
t.begin_fill()
t.right(52)
t.circle(27)
t.end_fill()
t.color('black', 'white')
t.pu()
t.goto(-45, 110)
t.pd()
t.begin_fill()
t.right(24)
t.circle(20, 80)
t.circle(7, 100)
t.seth(40)
t.fd(22)
t.left(17)
t.circle(10, 155)
t.end_fill()
t.pu()
t.goto(-20, 95)
t.pd()
t.begin_fill()
t.left(70)
t.circle(-14, 80)
t.circle(-7, 120)
t.right(44)
t.circle(35, 30)
t.end_fill()
t.pu()
t.goto(-41, 77)
t.pd()
t.begin_fill()
t.left(28)
t.circle(6)
t.end_fill()
t.color('black', 'black')
t.pu()
t.goto(-5, 55)
t.pd()
t.begin_fill()
t.left(10)
t.circle(-25)
t.end_fill()
t.color('black', 'white')
t.pu()
t.goto(5, 57)
t.pd()
t.begin_fill()
t.left(40)
t.circle(-8, 120)
t.left(30)
t.circle(-19, 80)
t.circle(-8, 120)
t.right(32)
t.circle(19, 60)
t.right(55)
t.circle(-9, 95)
t.end_fill()
t.pu()
t.goto(38, 62)
t.pd()
t.begin_fill()
t.left(190)
t.circle(-15, 50)
t.circle(-8, 100)
t.right(40)
t.circle(-10, 80)
t.end_fill()
t.pu()
t.goto(10, 50)
t.pd()
t.begin_fill()
t.circle(-5)
t.end_fill()
t.pu()
t.goto(-129, 12)
t.pd()
t.circle(-40, 35)
t.color('black', (205, 32, 32))
t.pu()
t.goto(-142, 7)
t.pd()
t.begin_fill()
t.seth(-150)
t.fd(18)
t.seth(150)
t.fd(55)
t.left(105)
t.circle(-43, 40)
t.right(125)
t.circle(-43, 30)
t.left(180)
t.circle(43, 30)
t.seth(-50)
t.fd(46)
t.circle(50, 26)
t.left(27)
t.circle(60, 50)
t.right(180)
t.circle(100, 60)
t.seth(0)
t.fd(194)
t.left(120)
t.circle(-50, 50)
t.fd(25)
t.right(20)
t.circle(34, 66)
t.circle(18, 116)
t.right(30)
t.circle(-90, 18)
t.seth(135)
t.fd(12)
t.seth(-145)
t.fd(10)
t.right(46)
t.circle(-90, 20)
t.circle(10, 100)
t.circle(-60, 20)
t.right(130)
t.circle(-50, 20)
t.left(90)
t.circle(-370, 6)
t.left(15)
t.circle(-90, 13)
t.right(7)
t.circle(-90, 18)
t.end_fill()
t.pu()
t.goto(-64, -33)
t.pd()
t.left(160)
t.circle(100, 40)
t.circle(40, 40)
t.color('black', (255, 228, 181))
t.pu()
t.goto(-62, -28)
t.pd()
t.begin_fill()
t.seth(140)
t.fd(8)
t.left(77)
t.circle(-12, 150)
t.left(90)
t.fd(11)
t.circle(-4, 120)
t.right(45)
t.fd(11)
t.left(130)
t.circle(20, 35)
t.circle(-4, 140)
t.right(30)
t.circle(-20, 40)
t.left(160)
t.circle(20, 40)
t.circle(-4, 140)
t.right(20)
t.circle(-20, 50)
t.left(190)
t.circle(-20, 40)
t.circle(-3, 130)
t.left(5)
t.circle(-20, 60)
t.left(180)
t.circle(-20, 40)
t.seth(25)
t.fd(10)
t.left(240)
t.circle(-30, 30)
t.left(40)
t.circle(60, 20)
t.seth(-30)
t.fd(7)
t.seth(-125)
t.fd(25)
t.end_fill()
t.pu()
t.goto(-212, 3)
t.pd()
t.begin_fill()
t.seth(150)
t.fd(12)
t.left(90)
t.fd(8)
t.right(50)
t.circle(-9, 90)
t.left(110)
t.fd(14)
t.right(40)
t.circle(-4, 120)
t.right(15)
t.circle(-20, 40)
t.left(180)
t.circle(-3, 100)
t.left(123)
t.circle(-30, 30)
t.circle(-3, 150)
t.right(10)
t.circle(-30, 30)
t.seth(80)
t.fd(3)
t.left(72)
t.circle(30, 30)
t.right(8)
t.circle(-4, 120)
t.right(43)
t.circle(-30, 40)
t.seth(80)
t.fd(3)
t.left(70)
t.circle(30, 34)
t.right(17)
t.circle(-4, 120)
t.right(27)
t.circle(-20, 90)
t.left(180)
t.circle(-20, 50)
t.seth(35)
t.fd(8)
t.left(234)
t.circle(60, 20)
t.seth(-33)
t.circle(-50, 23)
t.seth(-119)
t.fd(16)
t.end_fill()
t.done()

完毕!!感谢您的收看

----------★★历史博文集合★★----------
我的零基础Python教程,Python入门篇 进阶篇 视频教程 Py安装py项目 Python模块 Python爬虫 Json Xpath 正则表达式 Selenium Etree CssGui程序开发 Tkinter Pyqt5 列表元组字典数据可视化 matplotlib 词云图 Pyecharts 海龟画图 Pandas Bug处理 电脑小知识office自动化办公 编程工具
在这里插入图片描述

你可能感兴趣的:(我的Python教程,#,海龟画图,python,Python教程,海龟画图)