报告,俺抓住两只可爱的蜡笔小新(Python)

技术

picture.image

点击蓝字 关注我们

报告,小编抓住两只可爱的 蜡笔小新 ,愿与小伙伴们一起分享~

picture.image

《蜡笔小新》是由日本漫画家臼井仪人创作的喜剧漫画作品,自1990年起在《周刊漫画Action》上连载,后被改编为同名动画。故事围绕着五岁的小男孩野原新之助(昵称“小新”)和他的家人、朋友展开,以其独特的幽默感和对日常生活的夸张描绘而广受欢迎。小新性格调皮捣蛋,却充满天真与善良,他的言行常常让人捧腹大笑,同时也反映出许多社会现象和家庭关系的真实面貌。作品通过轻松诙谐的方式探讨了成长、亲情、友情等主题,深受各年龄层观众的喜爱。《蜡笔小新》不仅在日本国内拥有极高的人气,还被翻译成多种语言,在全球范围内拥有广泛的影响力,成为了一部具有代表性的日本动漫作品。

picture.image


                        
import turtle
                        
turtle.setup(1.0, 1.0)
                        
turtle.title('蜡笔小新')
                        
turtle.screensize(100, 100, "brown")
                        
t = turtle.Turtle()
                        
t.hideturtle()
                        
t.speed(0)
                        
t.pensize(2)
                        
# 头
                        
t.pu()
                        
t.goto(-200, -100)
                        
t.pd()
                        
t.color('black', '#fea993')
                        
t.begin_fill()
                        
t.seth(-30)
                        
t.circle(300, 80)
                        
t.circle(110, 110)
                        
t.circle(50, 20)
                        
t.fd(30)
                        
t.rt(60)
                        
t.circle(170, 130)
                        
t.rt(10)
                        
t.circle(250, 23)
                        

                        
# 耳朵
                        
t.pu()
                        
t.goto(-210, 0)
                        
t.seth(115)
                        
t.pd()
                        
t.circle(40, 140)
                        
t.circle(200, 17)
                        
t.circle(51, 120)
                        
t.fd(15)
                        
t.end_fill()
                        
# 头发
                        
t.pu()
                        
t.fillcolor(0, 0, 0)
                        
t.goto(-260, 20)
                        
t.begin_fill()
                        
t.pd()
                        
t.rt(11)
                        
t.circle(-40, 95)
                        
t.seth(90)
                        
t.fd(72)
                        
t.rt(5)
                        
t.fd(60)
                        
t.circle(-20, 50)
                        
t.circle(-500, 23)
                        
t.fd(3)
                        
t.seth(162)
                        
t.circle(170, 75)
                        
t.lt(0)
                        
t.circle(400, 20)
                        
t.end_fill()
                        
# 眼睛
                        
t.pu()
                        
t.goto(-170, 75)
                        
t.pd()
                        
t.seth(33)
                        
t.circle(-400, 16)
                        
t.pu()
                        
t.lt(7)
                        
t.fd(30)
                        
t.pd()
                        
t.fd(25)
                        
t.rt(20)
                        
t.circle(-400, 10)
                        
# 眉毛
                        
t.pu()
                        
t.goto(-167, 135)
                        
t.pd()
                        
t.pensize(30)
                        
t.seth(65)
                        
t.fd(40)
                        
t.circle(-25, 105)
                        
t.fd(25)
                        
t.pu()
                        
t.goto(-45, 185)
                        
t.pd()
                        
t.pensize(30)
                        
t.seth(55)
                        
t.fd(30)
                        
t.circle(-25, 105)
                        
t.fd(25)
                        
# 羞羞
                        
t.pensize(3)
                        
t.pu()
                        
t.goto(-155, 60)
                        
t.pencolor("#fa2a55")
                        
t.pd()
                        
t.seth(-110)
                        
t.fd(25)
                        
t.pu()
                        
t.goto(-145, 63)
                        
t.pd()
                        
t.seth(-110)
                        
t.fd(25)
                        
t.pu()
                        
t.goto(70, 125)
                        
t.pd()
                        
t.seth(-110)
                        
t.fd(20)
                        
t.pu()
                        
t.goto(80, 120)
                        
t.pd()
                        
t.seth(-110)
                        
t.fd(18)
                        
t.pensize(2)
                        
t.pencolor(0, 0, 0)
                        
# 嘴巴
                        
t.pu()
                        
t.goto(-115, -65)
                        
t.pd()
                        
t.seth(-70)
                        
t.pd()
                        
t.color('black', '#a24857')
                        
t.begin_fill()
                        
a = 9
                        
for i in range(36):
                        
    if 0 <= i < 9 or 18 <= i < 27:
                        
        a = a + 2.5
                        
        t.lt(10)
                        
        t.fd(a)
                        
    else:
                        
        a = a - 2.5
                        
        t.lt(10)
                        
        t.fd(a)
                        
t.end_fill()
                        
# 包子
                        
t.fillcolor("#ffd8b1")
                        
t.pu()
                        
t.goto(20, -110)
                        
t.pd()
                        
t.begin_fill()
                        
t.seth(-10)
                        
t.circle(500, 25)
                        
t.circle(20, 30)
                        
t.fd(10)
                        
t.circle(20, 10)
                        
t.fd(10)
                        
t.circle(70, 50)
                        
t.circle(30, 2)
                        
t.circle(70, 60)
                        
t.rt(30)
                        
t.circle(40, 70)
                        
t.rt(60)
                        
t.circle(50, 70)
                        
t.rt(70)
                        
t.circle(40, 70)
                        
t.rt(20)
                        
t.circle(70, 40)
                        
t.rt(10)
                        
t.circle(100, 60)
                        
t.circle(25, 50)
                        
t.end_fill()
                        
t.pu()
                        
t.goto(80, 25)
                        
t.pd()
                        
t.seth(-140)
                        
t.circle(50, 60)
                        
t.pu()
                        
t.goto(120, 27)
                        
t.pd()
                        
t.seth(-130)
                        
t.circle(50, 55)
                        
t.pu()
                        
t.goto(150, 22)
                        
t.pd()
                        
t.seth(-80)
                        
t.circle(50, 50)
                        
t.pu()
                        
t.goto(190, 27)
                        
t.pd()
                        
t.fd(15)
                        
turtle.done()
                    

picture.image


                      
import turtle as t
                      
t.setup(800, 500)  # 创建画布并使其位于屏幕中心
                      
t.title('蜡笔小新')
                      
t.hideturtle()
                      
t.colormode(255)  # 色彩模式
                      
t.color('black', (255, 228, 181))  # 画笔颜色与填充色
                      
t.speed(0)  # 画笔速度
                      
# 头
                      
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()
                  

序号文章目录直达链接
爱心系列
1无限弹窗代码无限弹窗!满屏表白代码来啦,快来看看吧
2满屏飘字代码
满屏飘字表白代码(Python版)
3李峋同款跳动的爱心Python李峋同款跳动的爱心代码(可写字版)
4漂浮爱心Python满屏漂浮爱心代码
5爱心光波
Python动感爱心光波代码

| | 6 | 流星雨 | 一起来看python流星雨吧!(含表白界面) | | 7 | 玫瑰花 | 叮咚,您的玫瑰花已送达~ | | 节日系列 | | 1 | 生日蛋糕 | Python与众不同的生日蛋糕(可定制版) | | 2 | 圣诞树 | Python画一棵浪漫的圣诞树(2022) | | 3 | 粉色圣诞树 | Python粉红色圣诞树(慢慢画版) | | 4 | 圣诞礼物 | 从天而降的Python圣诞礼物(可写字版) | | 5 | 中秋节 | 中秋佳节将至,一起来赏月吧 | | 6 | 国庆节 | 目光所至皆华夏,五星闪耀为信仰 | | 7 | 儿童节 | 让代码创造童话,共建快乐世界 | | 8 | 万圣节 | 终于要到我这只可爱鬼的节日啦! | | 9 | 新春 | 动漫风Python跨年烟花秀(可换照片 | | 10 | 跨年 | 今年跨年一起去看python烟花秀吧! | | 动漫系列 | | 1 | 柯南 | 真相只有一个!名侦探柯南来袭~ | | 2 | 皮卡丘 | 我用python实现了三只可爱的皮卡丘! | | 3 | hellokitty | 粉红色限定丨你好我是HelloKitty! | | 4 | 猪猪侠 | Python绘制猪猪侠代码 | | 5 | 沸羊羊 | 叮咚,您订购的沸羊羊已送达 | | 6 | 喜羊羊 | 我用python实现了一只呆萌的喜羊羊!

| | 7 | 懒羊羊 | 教你用python实现一只可爱的懒羊羊!

| | 8 | 小灰灰 | 谁会拒绝一只呆萌的小灰灰呢~ | | 炫酷系列 | | 1 | 满天星 | 一闪一闪亮晶晶,跨年就看林北星(Python) | | 2 | 雪花 | 陪你看一场冬雪(大雪纷飞Python版 | | 3 | 飘雪 | 这个冬天让我们用python送她一场飘雪吧! | | 4 | 张万森 | 张万森,下雪了(Python) | | 5 | 樱花树 | 樱花树下的约定,是承诺也是青春 | | 6 | 七彩花朵 | Python七彩花朵代码 | | 7 | 代码雨 | 三十行代码教你实现《黑客帝国》炫酷代码雨 | | 8 | 蝙蝠代码 | 万圣节特辑(一)丨 一只蝙蝠的诞生! | | 9 | 南瓜头 | 万圣节特辑(二)丨 你好恶魔南瓜头! |

我是一只有趣的兔子,感谢你的陪伴!

0
0
0
0
关于作者
关于作者

文章

0

获赞

0

收藏

0

相关资源
DevOps 在字节移动研发中的探索和实践
在日益复杂的APP工程架构下,如何保证APP能高效开发,保障团队效能和工程质量?本次将结合字节内部应用的事件案例,介绍DevOps团队对移动研发效能建设的探索和思考。
相关产品
评论
未登录
看完啦,登录分享一下感受吧~
暂无评论