目录
变化的量(状态--》描述某件事物的属性)
变量名 赋值符号(=)变量值
描述(接收变量值) 赋值符号 具体的值
#三单引号注释
'''
此段已被注释!!!
'''
#快捷键注释
组合键:ctrl + /
#dwad
#dWD
#dwada
import turtle as t
t.setup(650,350,200,200)
t.pensize(5)
t.colormode(255)
t.pencolor(139,90,43)
t.speed(5)
t.pu()
t.fd(75)
t.seth(100)
t.fd(100)
#头部
t.pd()
t.circle(60,75)
t.fd(20)
t.circle(60,85)
t.fd(20)
t.seth(-86)
t.circle(50,90)
t.seth(0)
t.fd(45)
t.circle(45,100)
t.fd(20)
#眼睛
t.pu()
t.seth(180)
t.fd(90)
#左眼睛
t.pd()
t.begin_fill()
t.color(139,90,43)
t.seth(90)
t.circle(7,180)
t.fd(15)
t.circle(7,180)
t.end_fill()
t.fd(15)
t.bk(13)
t.pensize(4)
t.seth(0)
t.fd(40)
#右眼睛
t.pu()
t.fd(15)
t.pd()
t.begin_fill()
t.color(139,90,43)
t.seth(90)
t.fd(13)
t.circle(7,180)
t.fd(15)
t.circle(7,180)
t.fd(5)
t.end_fill()
#身体
t.pu()
t.bk(50)
t.seth(180)
t.fd(90)
t.pd()
#左半边
t.seth(-140)
t.fd(30)
t.circle(90,20)
t.fd(30)
t.circle(80,30)
t.fd(30)
t.circle(10,180)
t.seth(70)
t.fd(10)
t.pu()
t.seth(80)
t.fd(80)
t.seth(0)
t.fd(10)
t.pd()
t.seth(-120)
t.circle(180,60)
#右半边
t.pu()
t.seth(60)
t.fd(265)
t.seth(-40)
t.pd()
t.fd(30)
t.circle(-90,20)
t.fd(30)
t.circle(-80,30)
t.fd(30)
t.circle(-10,180)
t.seth(120)
t.fd(10)
t.pu()
t.seth(100)
t.fd(80)
t.seth(180)
t.fd(10)
t.pd()
t.seth(-60)
t.circle(-180,60)
t.done()
原文:https://www.cnblogs.com/CaptainZq/p/11401256.html