用python为武汉加油_武汉加油!(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()

原文地址:https://www.cnblogs.com/Alic5/p/12337057.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值