python画一只哆啦A梦

import turtle as t
import os
t.speed(10)
t.fillcolor(“blue”)
t.begin_fill()
t.circle(120)
t.end_fill()
t.fillcolor(“white”)
t.begin_fill()
t.circle(100)
t.end_fill()

t.pu()
t.goto(0,134)
t.pd()
t.fillcolor(“red”)
t.begin_fill()
t.circle(18)
t.end_fill()

t.pu()
t.goto(-30,160)
t.pd()
t.begin_fill()
t.fillcolor(“white”)
a=0.4
for i in range (120):
if 0<=i<30 or 60<=i<90:
a=a+0.08
t.lt(3)
t.fd(a)
else:
a=a-0.08
t.lt(3)
t.fd(a)
t.end_fill()

t.pu()
t.goto(30,160)
t.pd()
t.begin_fill()
t.fillcolor(“white”)
a=0.4
for i in range (120):
if 0<=i<30 or 60<=i<90:
a=a+0.08
t.lt(3)
t.fd(a)
else:
a=a-0.08
t.lt(3)
t.fd(a)
t.end_fill()

t.pu()
t.goto(-20,185)
t.pd()
t.begin_fill()
t.fillcolor(“black”)
t.circle(13)
t.end_fill()

t.pu()
t.goto(20,185)
t.pd()
t.begin_fill()
t.fillcolor(“black”)
t.circle(13)
t.end_fill()

t.pu()
t.goto(13,190)
t.pd()
t.begin_fill()
t.fillcolor(“white”)
t.circle(5)
t.end_fill()

t.pu()
t.goto(-13,190)
t.pd()
t.begin_fill()
t.fillcolor(“white”)
t.circle(5)
t.end_fill()

t.left(10)
for i in range (3):
t.pu()
t.goto(0,120-i*10)
t.pd()
t.fillcolor(“black”)
t.fd(80)

t.seth(170)
for i in range (3):
t.pu()
t.goto(0,120-i*10)
t.pd()
t.fillcolor(“black”)
t.fd(80)

t.pu()
t.goto(0,130)
t.pd()
t.seth(270)
t.fd(40)

t.pu()
t.goto(-70,80)
t.pd()
t.seth(0)
t.fd(140)

t.seth(270)
t.begin_fill()
t.fillcolor(“red”)
t.circle(-70,180)
t.end_fill()

t.seth(270)
t.begin_fill()
t.fillcolor(“pink”)
t.circle(35,90)
t.fd(70)
t.circle(35,90)
t.end_fill()
t.seth(180)
t.fd(140)
#脸部
t.pu()
t.goto(80,32)
t.pd()
t.begin_fill()
t.fillcolor(“blue”)
t.seth(-225)
t.circle(135,-100)
t.seth(180)
t.fd(125)
t.seth(145)
t.circle(-135,100)
t.seth(-45)
t.circle(110,100)
t.end_fill()

t.pu()
t.goto(0,-150)
t.pd()
t.begin_fill()
t.fillcolor(“white”)
t.seth(0)
t.circle(70)
t.end_fill()

t.pu()
t.goto(-50,-80)
t.pd()
t.fd(100)
t.seth(270)
t.circle(-50,180)
#身体
t.pu()
t.goto(80,32)
t.pd()
t.seth(-225)
t.circle(135,-20)
t.seth(30)
t.fd(100)
t.begin_fill()
t.fillcolor(“blue”)
t.pu()
t.goto(80,32)
t.pd()
t.seth(-225)
t.circle(135,-30)
t.seth(30)
t.fd(100)
t.end_fill()
t.seth(150)
t.circle(-20)
#右手
t.pu()
t.goto(-80,32)
t.pd()
t.seth(225)
t.circle(135,20)
t.seth(150)
t.fd(100)
t.begin_fill()
t.fillcolor(“blue”)
t.pu()
t.goto(-80,32)
t.pd()
t.seth(225)
t.circle(135,30)
t.seth(150)
t.fd(100)
t.end_fill()
t.seth(30)
t.circle(20,360)
#左手
t.pu()
t.goto(-35,-175)
t.pd()
t.begin_fill()
t.fillcolor(“blue”)
t.seth(270)
t.fd(55)
t.rt(90)
t.fd(55)
t.rt(90)
t.fd(85)
t.end_fill()
t.pu()
t.goto(-35,-230)
t.pd()
t.seth(0)
t.circle(-20,180)
t.fd(55)
t.circle(-20,180)
#左腿
t.pu()
t.goto(35,-175)
t.pd()
t.begin_fill()
t.fillcolor(“blue”)
t.seth(270)
t.fd(55)
t.lt(90)
t.fd(55)
t.lt(90)
t.fd(85)
t.end_fill()
t.pu()
t.goto(90,-230)
t.pd()
t.seth(0)
t.circle(-20,180)
t.fd(55)
t.circle(-20,180)
#右腿
t.pu()
t.goto(0,-5)
t.pd()
t.begin_fill()
t.fillcolor(“yellow”)
t.circle(-20)
t.end_fill()
t.pu()
t.goto(0,-45)
t.pd()
t.seth(90)
t.fd(10)
t.seth(0)
t.begin_fill()
t.fillcolor(“black”)
t.circle(10)
t.end_fill()
t.pu()
t.goto(0,-2.5)
t.pd()
t.circle(120,40)
t.pencolor(“red”)
t.pensize(10)
t.circle(120,-80)
t.pu()
t.goto(300,300)
os.system(“pause”)
在这里插入图片描述

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值