武汉加油!(Python版)

#武汉加油!
import turtle as t
t.pensize(20)
t.pencolor("blue")
t.setup(1700, 600)

t.penup()#-
t.goto(-400,150)
t.pendown()
t.goto(-320,150)

t.penup()#--
t.goto(-400,100)
t.pendown()
t.goto(-220,100)

t.penup()#1
t.goto(-350,70)
t.pendown()
t.goto(-350,-50)

t.penup()#-
t.goto(-350,20)
t.pendown()
t.goto(-310,20)

t.penup()#1
t.goto(-380,20)
t.pendown()
t.goto(-380,-50)

t.penup()#-
t.goto(-400,-50)
t.pendown()
t.goto(-300,-50)

t.penup()#L
t.goto(-300,250)
t.pendown()
t.seth(-90)
t.circle(600,33)
t.goto(-200,-40)

t.penup()#。
t.goto(-250,185)
t.pendown()
t.goto(-240,165)

#汉
t.penup()#。
t.goto(-130,185)
t.pendown()
t.goto(-90,150)

t.penup()#。
t.goto(-180,120)
t.pendown()
t.goto(-140,90)

t.penup()#/
t.goto(-160,-50)
t.pendown()
t.goto(-110,40)

t.penup()#--
t.goto(-60,130)
t.pendown()
t.goto(40,130)

t.goto(-60,-40)#/

t.penup()#\
t.goto(-60,80)
t.pendown()
t.goto(40,-40)


#变色
t.pencolor("red")

#加
t.penup()#-
t.goto(100,130)
t.pendown()
t.goto(200,130)

#1
t.goto(200,-50)
t.goto(180,-20)

t.penup()#/
t.goto(150,230)
t.pendown()
t.seth(-90)
t.circle(-700,25)

t.penup()#1
t.goto(230,130)
t.pendown()
t.goto(230,0)

#-1-
t.goto(300,0)
t.goto(300,130)
t.goto(230,130)


#油
t.penup()#。
t.goto(400,185)
t.pendown()
t.goto(440,150)

t.penup()#。
t.goto(350,120)
t.pendown()
t.goto(420,90)

t.penup()#/
t.goto(370,-50)
t.pendown()
t.goto(420,40)

t.penup()#-1-1
t.goto(470,90)
t.pendown()
t.goto(600,90)
t.goto(600,-50)
t.goto(470,-50)
t.goto(470,90)

t.penup()#-
t.goto(470,20)
t.pendown()
t.goto(600,20)

t.penup()#1
t.goto(535,200)
t.pendown()
t.goto(535,-50)

#彩蛋
t.penup()#1
t.goto(750,250)
t.pendown()

from turtle import *
color('yellow', 'yellow')
begin_fill()
for i in range(5):
    fd(200)
    rt(144)
end_fill()

t.done()

猜你喜欢

转载自www.cnblogs.com/Alic5/p/12337057.html