Commit 954064dc by BellCodeEditor

auto save

parent dd8e9778
Showing with 304 additions and 0 deletions
import turtle as t
t.speed(5)
t.fillcolor("red")
t.penup()
t.goto(0,200)
t.right(45)
t.pendown()
t.pencolor("red")
t.begin_fill()
for i in range(4):
t.forward(350)
t.right(90)
t.end_fill()
t.pencolor("yellow")
t.penup()
t.goto(0,165)
t.pendown()
for i in range(4):
t.forward(300)
t.right(90)
def fu():
t.pencolor("black")
t.pensize(20)
t.penup()
t.forward(45)
t.setheading(0)
t.pendown()
t.forward(-60)
t.right(-135)
t.right(90)
t.forward(100)
t.setheading(-135)
t.forward(50)
t.setheading(90)
t.forward(125)
t.setheading(-90)
t.forward(125)
t.setheading(135)
t.forward(50)
t.penup()
t.setheading(-90)
t.forward(110)
t.setheading(0)
t.forward(50)
t.pendown()
t.setheading(135)
t.forward(30)
t.penup()
t.setheading(180)
t.forward(70)
t.setheading(-90)
t.forward(10)
t.pendown()
t.setheading(180)
t.forward(50)
t.penup()
t.setheading(90)
t.forward(30)
t.pendown()
t.setheading(0)
for i in range(4):
t.forward(50)
t.left(90)
t.penup()
t.setheading(90)
t.forward(80)
t.setheading(180)
t.forward(10)
t.pendown()
t.setheading(0)
for i in range(4):
t.forward(70)
t.left(90)
t.penup()
t.setheading(0)
t.forward(35)
t.pendown()
t.setheading(90)
t.forward(70)
t.penup()
t.setheading(-90)
t.forward(35)
t.setheading(0)
t.forward(35)
t.pendown()
t.setheading(180)
t.forward(70)
t.hideturtle()
t.penup()
t.goto(50,-80)
fu()
t.done()
\ No newline at end of file
import turtle as t
t.speed(10)
t.penup()
t.goto(-15,3)#身体
t.pendown()
t.setheading(-90)
t.pencolor("black")
t.pensize(1)
t.pendown()
t.fillcolor("yellow")
t.begin_fill()
t.forward(80)
def legs(a):
for i in range(15):
t.forward(1)
t.left(a)
legs(6)
t.forward(8)
legs(6)
t.forward(8)
legs(-6)
t.forward(7)
legs(-6)
t.forward(8)
legs(6)
t.forward(12)
legs(6)
t.forward(8)
legs(-6)
t.forward(16)
legs(-6)
t.forward(8)
legs(6)
t.forward(8)
legs(6)
t.forward(38)
t.circle(75,120)
t.end_fill()
t.penup()
t.fillcolor("yellow")#脸
t.goto(0,0)
t.pendown()
t.setheading(0)
t.begin_fill()
t.circle(70)
t.end_fill()#脸 结束
t.penup()#耳朵1
t.goto(50,120)
t.pendown()
t.begin_fill()
t.circle(20,300)
t.penup()
t.end_fill()
t.goto(46,122)
t.setheading(15)
t.pendown()
t.fillcolor("pink")
t.begin_fill()
t.circle(11,260)
t.penup()
t.end_fill()
t.home()#耳朵2
t.right(180)
t.goto(-50,120)
t.pendown()
t.fillcolor("yellow")
t.begin_fill()
t.circle(-20,300)
t.end_fill()
t.penup()
t.home()
t.right(180)
t.goto(-46,122)
t.pendown()
t.fillcolor("pink")
t.begin_fill()
t.circle(-11,280)
t.end_fill()
t.penup()
t.goto(-48,122)
t.penup()#头 结束
t.pensize(5)
t.goto(-10,130)#王
t.pendown()
t.setheading(0)
t.forward(20)
t.forward(-10)
t.right(90)
t.forward(10)
t.left(90)
t.forward(10)
t.forward(-20)
t.forward(10)
t.right(90)
t.forward(10)
t.left(90)
t.forward(10)
t.forward(-20)
t.forward(10)
t.penup()#王 结束
t.goto(35,80)#眼睛
t.pensize(10)
t.dot()
t.pensize(2)
t.pencolor("white")
t.goto(34,81)
t.dot()
t.pencolor("black")
t.goto(-35,80)
t.pensize(10)
t.dot()
t.pensize(2)
t.pencolor("white")
t.goto(-36,81)
t.dot()#眼睛 结束
t.fillcolor("white")#嘴巴
t.begin_fill()
t.pencolor("black")
t.pensize(1)
t.goto(45,16)
t.setheading(105)
t.pendown()
t.begin_fill()
t.circle(45,150)
t.setheading(-39)
t.circle(70,90)
t.end_fill()
t.penup()
t.goto(-20,25)
t.setheading(-90)
t.pendown()
t.circle(10,180)
t.right(180)
t.circle(10,180)
t.penup()#嘴巴 结束
t.fillcolor("pink")#鼻子
t.begin_fill()
t.goto(-12,50)
t.pendown()
t.circle(-12)
t.end_fill()
t.penup()#鼻子 结束
t.goto(-63,45)#线条1
t.pendown()
t.pensize(5)
t.setheading(25)
t.pencolor("brown")
t.forward(16)
t.forward(-16)
t.penup()
t.goto(-59,38)
t.pendown()
t.forward(12)
t.penup()
t.goto(63,45)#线条2
t.pendown()
t.pensize(5)
t.setheading(-25)
t.pencolor("brown")
t.forward(-16)
t.forward(16)
t.penup()
t.goto(59,38)
t.pendown()
t.forward(-12)
t.forward(12)
t.penup()#线条3
t.goto(-10,-28)
t.setheading(0)
t.pendown()
t.pensize(10)
t.pencolor("brown")
t.forward(16)
t.forward(-16)
t.penup()
t.goto(-10,-48)
t.pendown()
t.forward(12)
t.penup()
t.goto(81,24)#线条4
t.setheading(-112)
t.pendown()
t.forward(16)
t.penup()
t.goto(96,18)
t.pendown()
t.setheading(-122)
t.pendown()
t.forward(16)
t.penup()
t.goto(109,7)
t.pendown()
t.setheading(-132)
t.pendown()
t.forward(16)
t.penup()#线条 结束
t.goto(135,-37)#尾巴
t.setheading(0)
t.pendown()
legs(6)
for i in range(5):
t.pencolor("yellow")
t.forward(6)
t.pencolor("brown")
t.forward(6)
legs(-6)
t.pencolor("yellow")
legs(-6)
t.hideturtle()
t.done()
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment