Python 之心有猛虎,细嗅蔷薇

        Happy new year!

        一元复始,万象更新。祝大家新的一年顺心顺意,虎虎生威!

       心有猛虎,细嗅蔷薇。愿岁月静好,平安吉祥。

        In me, past, present, future meet,

        To hold long chiding conference.

        My lusts usurp the present tense

        And strangle Reason in his seat.

        My loves leap through the future's fence

        To dance with dream-enfranchised feet.

        In me the cave-man clasps the seer,

        And garlanded Apollo goes

        Chanting to Abraham's deaf ear.

        In me the tiger sniffs the rose.

        Look in my heart, kind friends, and tremble,

        Since there your elements assemble.

from turtle import *

bgcolor('wheat')

#起笔位置
up()
lt(90)
fd(200)
down()
rt(90)

#花蕊
width(2)
color('tomato')
fillcolor("red")
begin_fill()
circle(10,180)
circle(25,110)
lt(50)
circle(60,45)
circle(20,170)
rt(24)
fd(30)
lt(10)
circle(30,110)
fd(20)
lt(40)
circle(90,70)
circle(30,150)
rt(30)
fd(15)
circle(80,90)
lt(15)
fd(45)
rt(165)
fd(20)
lt(155)
circle(150,80)
lt(50)
circle(150,90)
end_fill()

#花瓣1
width(2)
color('tomato')
lt(150)
circle(-90,70)
lt(20)
circle(75,105)
seth(60)
circle(80,98)
circle(-90,40)

#花瓣2
width(2)
color('tomato')
lt(180)
circle(90,40)
circle(-80,98)
seth(-83)

width(4)
color('green')
fd(60)
lt(115)

#叶子1
width(1)
color('green')
fd(25)
lt(45)
fillcolor("forestgreen")
begin_fill()
circle(-80,90)
rt(90)
circle(-80,90)
end_fill()

width(5)
color('green')
rt(135)
fd(60)
lt(180)
fd(85)
lt(65)
fd(80)

#叶子2
width(1)
color('darkgreen')
rt(110)
fd(25)
rt(45)
fillcolor("green")
begin_fill()
circle(100,90)
lt(90)
circle(100,90)
end_fill()

width(6)
color('darkgreen')
lt(135)
fd(80)
lt(180)
fd(105)

rt(70)
circle(200,60)
ht()

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

香饽々

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值