首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏python成长之路

    用python画小猪佩奇(非原创)

    (30) t.end_fill() #嘴 t.color(239,69,19) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth 0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle (10) t.color((240,128,128)) t.pu() t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd( t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) t.color("black") t.pensize

    87110发布于 2019-02-22
  • 来自专栏菜鸟小白的学习分享

    决定了,儿童节我们用python画这个...

    (165) fd(60) my_goto(-32, 125) seth(180) fd(60) my_goto(-32, 115) seth(193) fd(60) my_goto(37, 135) seth(15) fd(60) my_goto(37, 125) seth(0) fd(60 , 1) seth(-89) circle(-1000, 10) seth(180) fd(70) seth(90) circle(30, 180) seth(180) fd(70) seth(100) circle(-1000, 9) seth(-86) circle(1000, 2) seth(230 seth(0) fd(70) seth(-90) circle(-70, 180) seth(0) fd(70) # 铃铛 def bell():

    93040发布于 2021-06-17
  • 来自专栏技术汇总专栏

    用 Python 绘制圣诞树

    ) fd(20) seth(180) fd(20) seth(-60) fd(20) seth(50) fd(20) seth(-40) fd(30 ) seth(-130) fd(5) seth(135) fd(30) seth(-60) fd(30) seth(-150) fd(6) seth (15) seth(10) fd(15) seth(-60) fd(20) seth(-180) fd(5) seth(110) fd(20) seth (0)goto(0, 150)pendown()circle(10)seth(-15)fd(40)seth(90)fd(40)seth(200)fd(40)seth(160)fd(40)seth(-90 )fd(40)seth(15)fd(40)seth(-70)pencolor("#f799e6")pensize(4)fd(40)seth(-180)fd(10)seth(100)fd(40)seth(

    78410编辑于 2024-03-30
  • 来自专栏沉默王二

    齐齐,啥是佩奇?嗯,就是那个小猪佩奇...

    () t.seth(-130) t.circle(100, 10) t.circle(300, 30) t.seth(0) t.fd(230) t.seth t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle( -20, 90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20 () t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd(40) 240, 128, 128)) t.pu() t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth

    81220发布于 2019-01-28
  • 来自专栏Gorit 带你学全栈系列

    Python小项目

    (135) turtle.fd(20) turtle.seth(225) turtle.fd(20) turtle.seth(315) turtle.fd(20) turtle.seth(45) turtle.fd (30) turtle.seth(-45) turtle.fd(30) turtle.seth(225) turtle.fd(30) turtle.end_fill() turtle.seth(90) (0) turtle.fd(15) turtle.seth(-90) turtle.fd(10) turtle.seth(180) turtle.fd(15) turtle.seth(90) turtle.fd t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle( -20, 90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20

    1.3K20编辑于 2021-12-09
  • 来自专栏CTF及算法学习

    Turtle库画小猫咪

    ) fd(10) seth(i) fd(3) #头部到这里就画好外观了 seth(-40) fd(52) seth(-135) fd(45) pu() seth(-105 ): seth(i) fd(2) seth(38) fd(25) seth(135) fd(31) seth(169) fd(6) seth(270) fd(105) #右边的身子画好了 #开始画左边的身子 pu() goto(-52,-30) pendown() seth(220) fd(48)#52 seth(250) fd(3) seth(270) fd(3) seth(290) ) fd(22) seth(90) fd(2) seth(60) fd(2) seth(45) fd(29) seth(0) fd(3) seth(-93) fd(102) #叉腰动作结束 接下来画嘴巴 (135) pendown() fd(25) seth(225) fd(45) seth(25) fd(15) seth(-80) pensize(2) fd(15) seth(55) fd(15) seth

    1.3K50发布于 2020-03-12
  • 来自专栏站长的编程笔记

    【说站】python中怎样画小猪佩奇?

    () t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth(-80) t.circle(30,40) t.circle(40,80)   #身体 t.color("red",(255,99,71)) t.pu() t.seth(90) t.fd(-20) t.seth(0) t.fd(-78) t.pd() t.begin_fill() t.seth #手 t.color((255,155,192)) t.pu() t.seth(90) t.fd(-40) t.seth(0) t.fd(-27) t.pd() t.seth(-160) t.circle (300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90)   t.pu() t.seth (90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle(-300,15) t.pu() t.seth(90) t.fd(20) t.seth

    52820编辑于 2022-11-23
  • 来自专栏Gorit 带你学全栈系列

    用Python 做好玩的事

    t.fd(41) t.seth(0) t.fd(0) t.pd() t.begin_fill() t.seth(180) t.circle(300 t.fd(-12) t.seth(0) t.fd(30) t.pd() t.begin_fill() t.seth(100) t.circle(-50, () t.color("black") t.pu() t.seth(90) t.fd(12) t.seth(0) t.fd(-3) t.pd() t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle( -20, 90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20

    92430编辑于 2021-12-09
  • 来自专栏蜕变

    #哆啦A梦

    ) seth(-13) fd(60) # 嘴巴 def mouth(): my_goto(5, 148) seth(270) fd(100) seth(0) circle (90) eyes() seth(180) penup() fd(60) pendown() seth(90) eyes() penup() seth fillcolor('#00a0de') begin_fill() seth(230) fd(80) seth(90) circle(1000, 1) seth (-89) circle(-1000, 10) # print(pos()) seth(180) fd(70) seth(90) circle(30, 180) seth (180) fd(70) # print(pos()) seth(100) circle(-1000, 9) seth(-86) circle(1000, 2) seth

    1K00发布于 2018-07-29
  • 来自专栏站长的编程笔记

    【说站】python如何绘制多拉A梦?

    (165)     fd(60)       my_goto(-32, 125)     seth(180)     fd(60)       my_goto(-32, 115)     seth(193 )     fd(60)       my_goto(37, 135)     seth(15)     fd(60)       my_goto(37, 125)     seth(0)     fd (60)       my_goto(37, 115)     seth(-13)     fd(60)   # 嘴巴 def mouth():     my_goto(5, 148)     seth (1000, 1)     seth(-89)     circle(-1000, 10)       # print(pos())       seth(180)     fd(70)     seth )     seth(0)     fd(70)     seth(-90)     circle(-70, 180)     seth(0)     fd(70)       #铃铛     my_goto

    59520编辑于 2022-11-23
  • 来自专栏北山啦的博客

    Python绘制哆啦A梦、皮卡丘、圣诞树

    , 1) seth(-89) circle(-1000, 10) # print(pos()) seth(180) fd(70) seth(90) seth(40) circle(150, 10) seth(30) fd(40) end_fill() # 左手 seth(70) fillcolor seth(0) fd(70) seth(-90) circle(-70, 180) seth(0) fd(70) # 铃铛 my_goto t.fd(10) t.seth(280) t.fd(7) t.seth(210) t.fd(10) t.seth(300) , 80) t.seth(240) t.fd(12) t.seth(0) t.fd(13) t.seth(240)

    1.2K10编辑于 2022-11-27
  • 来自专栏HUBU生信

    turtle作图:用turtle画一个小猪佩奇(详解!)

    (30) t.end_fill() #嘴 t.color(239,69,19) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth 0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle (10) t.color((240,128,128)) t.pu() t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd( t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) t.color("black") t.pensize

    4.3K20发布于 2018-12-27
  • 来自专栏全栈程序员必看

    Python海龟画图集合

    (30) t.end_fill() #嘴 t.color(239,69,19) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth 0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle (10) t.color((240,128,128)) t.pu() t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd( t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) t.color("black") t.pensize

    1.5K20编辑于 2022-09-14
  • 来自专栏北京马哥教育

    Python有趣的小案例

    (90) t.fd(-40) t.seth(0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth (0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd( ) t.seth(-20) t.circle(-300,15) t.pu() t.seth(90) t.fd(20) t.seth(0) t.fd(0) t.pd() t.seth(-170) t.circle 240,128,128)) t.pu() t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) 1000, 1) seth(-89) circle(-1000, 10) # print(pos()) seth(180) fd(70) seth(90)

    2.9K40发布于 2018-06-20
  • 来自专栏python3

    #18 turtle模块

    (90) 33 t.fd(25) 34 t.seth(0) 35 t.fd(10) 36 t.pd() 37 t.pencolor(255, 155, 192) 38 t.seth(10) (90) 59 t.fd(41) 60 t.seth(0) 61 t.fd(0) 62 t.pd() 63 t.begin_fill() 64 t.seth(180) 65 t.circle ) 105 t.fd(-12) 106 t.seth(0) 107 t.fd(30) 108 t.pd() 109 t.begin_fill() 110 t.seth(100) 111 t.circle ((255,155,192)) 210 t.pu() 211 t.seth(90) 212 t.fd(-40) 213 t.seth(0) 214 t.fd(-27) 215 t.pd() 216 t.seth () 224 t.seth(-10) 225 t.circle(-20,90) 226 227 t.pu() 228 t.seth(90) 229 t.fd(30) 230 t.seth(0) 231

    1.1K20发布于 2020-01-17
  • 来自专栏Python小二

    最美圣诞树!用Python画棵雪夜圣诞树送给你

    树 圣诞树主要代码实现如下: # 画第一层 seth(-120) for i in range(10): fd(12) right(2) penup() goto(0, 150) seth , 35) seth(-60) pendown() for i in range(10): fd(8) left(5) seth(-120) penup() fd(10) seth(-145 (-120) fd(20) seth(150) fd(5) circle(7, 180) fd(15) circle(5, 90) fd(30) seth(160) fd(18) end_fill() () pensize(2) circle(5) seth(10) fd(15) seth(120) fd(20) seth(240) fd(20) seth(180) fd(20) seth(-60) fd(20) seth(50) fd(20) seth(-40) fd(30) seth(-130) fd(5) seth(135) fd(30) seth(-60) fd(30) seth(-150)

    3.3K10编辑于 2022-08-24
  • 来自专栏好好学习吧

    使用Python的turtle画小绵羊

    # 眼珠 self.setxy(3,12) t.fillcolor('black') t.begin_fill() t.seth(85) t.fillcolor('white') t.begin_fill() t.seth(85) t.circle(3) t.seth(85) t.seth(60) t.circle(-15,320) t.seth(330) t.circle(-80,180) t.seth(210 (270) t.forward(80) t.seth(0) t.forward(8) t.seth(90) (120) t.forward(30) t.seth(330) t.forward(30) t.seth(60) t.forward

    1.7K30发布于 2018-08-30
  • 来自专栏python全栈教程专栏

    python画一个可爱的皮卡丘(完整代码)

    (50) t.fd(25) t.seth(-50) t.fd(30) p_tail1=t.pos t.seth(-140) t.fd(36) t.end_fill() t.seth(39) # 右尾和h1 t.fd(72) # 右尾和v1 t.seth(125) t.fd(48) # 右尾和h2 t.seth(40) t.fd(53) # 右尾和v2 t.seth(88) t.fd(45) # 右尾和h3 t.seth(35) t.fd(105) # 右尾和v3 t.seth(105) t.circle(850, 8) #t.fd(105) t.seth(215) #t.fd(125) t.circle (-30, -180) t.seth(80) t.fd(10) t.seth(165) t.circle(10, 60) t.seth(90) t.fd(5) t.seth(165) t.circle( 10, 60) t.seth(95) t.fd(5) t.seth(185) t.circle(10, 60) t.seth(105) t.fd(10) t.seth(230) t.fd(20) t.seth

    31.4K30发布于 2021-10-18
  • 来自专栏用户7627119的专栏

    用python画出你的童年回忆

    (30) t.end_fill() #嘴 t.color(239,69,19) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(-100) t.pd() t.seth 0) t.fd(-27) t.pd() t.seth(-160) t.circle(300,15) t.pu() t.seth(90) t.fd(15) t.seth(0) t.fd(0) t.pd() t.seth(-10) t.circle(-20,90) t.pu() t.seth(90) t.fd(30) t.seth(0) t.fd(237) t.pd() t.seth(-20) t.circle (10) t.color((240,128,128)) t.pu() t.seth(90) t.fd(-75) t.seth(0) t.fd(-180) t.pd() t.seth(-90) t.fd( t.seth(90) t.fd(40) t.seth(0) t.fd(90) t.pd() t.seth(-90) t.fd(40) t.seth(-180) t.color("black") t.pensize

    1.1K20发布于 2020-08-06
  • 来自专栏站长的编程笔记

    【说站】如何使用python画皮卡丘?

    t.fd(10)         t.seth(280)         t.fd(7)         t.seth(210)         t.fd(10)         t.seth(300) , 80)         t.seth(240)         t.fd(12)         t.seth(0)         t.fd(13)         t.seth(240)          t.circle(10, 70)         t.seth(10)         t.circle(10, 70)         t.seth(10)         t.circle(300, t.seth(180)         t.circle(-100, 10)         t.left(180)         t.circle(100, 10)         t.seth(5 t.seth(110)         t.circle(100, 20)         t.left(180)         t.circle(-100, 20)           t.seth

    47130编辑于 2022-11-23
领券