用Python画一个生日蛋糕并写上生日祝福对象及生日祝福语

5

t.pu()

t.goto(120, 70)

t.pd()

t.pencolor(“#fff0f3”)

t.begin_fill()

for i in range(360):

x = drawX(120, i)

y = drawY(48, i) + 70

t.goto(x, y)

t.fillcolor(“#fff0f3”)

t.end_fill()

6

t.pu()

t.goto(110, 70)

t.pd()

t.pencolor(“#fff9fb”)

t.begin_fill()

for i in range(360):

x = drawX(110, i)

y = drawY(44, i) + 70

t.goto(x, y)

t.fillcolor(“#fff9fb”)

t.end_fill()

7

t.pu()

t.goto(120, 0)

t.pd()

t.begin_fill()

t.pencolor(“#ffa79d”)

for i in range(180):

x = drawX(120, -i)

y = drawY(48, -i) + 10

t.goto(x, y)

t.goto(-120, 0)

for i in range(180, 360):

x = drawX(120, i)

y = drawY(48, i)

t.goto(x, y)

t.fillcolor(“#ffa79d”)

t.end_fill()

8

t.pu()

t.goto(120, 70)

t.pd()

t.begin_fill()

t.pensize(4)

t.pencolor(“#fff0f3”)

for i in range(1800):

x = drawX(120, 0.1 * i)

y = drawY(-18, i) + 10

t.goto(x, y)

t.goto(-120, 70)

t.pensize(1)

for i in range(180, 360):

x = drawX(120, i)

y = drawY(48, i) + 70

t.goto(x, y)

t.fillcolor(“#fff0f3”)

t.end_fill()

9

t.pu()

t.goto(80, 70)

t.pd()

t.begin_fill()

t.pencolor(“#6f3732”)

t.goto(80, 120)

for i in range(180):

x = drawX(80, i)

y = drawY(32, i) + 120

t.goto(x, y)

t.goto(-80, 70)

for i in range(180, 360):

x = drawX(80, i)

y = drawY(32, i) + 70

t.goto(x, y)

t.fillcolor(“#6f3732”)

t.end_fill()

10

t.pu()

t.goto(80, 120)

t.pd()

t.pencolor(“#ffaaa0”)

t.begin_fill()

for i in range(360):

x = drawX(80, i)

y = drawY(32, i) + 120

t.goto(x, y)

t.fillcolor(“#ffaaa0”)

t.end_fill()

11

t.pu()

t.goto(70, 120)

t.pd()

t.pencolor(“#ffc3be”)

t.begin_fill()

for i in range(360):

x = drawX(70, i)

y = drawY(28, i) + 120

t.goto(x, y)

t.fillcolor(“#ffc3be”)

t.end_fill()

12

t.pu()

t.goto(80, 120)

t.pd()

t.begin_fill()

t.pensize(3)

t.pencolor(“#ffaaa0”)

for i in range(1800):

x = drawX(80, 0.1 * i)

y = drawY(-12, i) + 80

t.goto(x, y)

t.goto(-80, 120)

t.pensize(1)

for i in range(180, 360):

x = drawX(80, i)

y = drawY(32, i) + 120

t.goto(x, y)

t.fillcolor(“#ffaaa0”)

t.end_fill()

13

t.pu()

t.goto(64, 120)

t.pd()

t.pencolor(“#b1c9e9”)

t.begin_fill()

for i in range(360):

x = drawX(4, i) + 60

y = drawY(1, i) + 120

t.goto(x, y)

t.goto(64, 170)

for i in range(540):

x = drawX(4, i) + 60

y = drawY(1, i) + 170

t.goto(x, y)

t.goto(56, 120)

t.fillcolor(“#b1c9e9”)

t.end_fill()

t.pencolor(“white”)

t.pensize(2)

for i in range(1, 6):

t.goto(64, 120 + 10 * i)

t.pu()

t.goto(56, 120 + 10 * i)

t.pd()

t.pu()

t.goto(60, 170)

t.pd()

t.goto(60, 180)

t.pensize(1)

t.pu()

t.goto(64, 190)

t.pd()

t.pencolor(“#f1add1”)

t.begin_fill()

for i in range(360):

x = drawX(4, i) + 60

y = drawY(10, i) + 190

t.goto(x, y)

t.fillcolor(“#f1add1”)

t.end_fill()

14

t.pu()

t.goto(-56, 120)

t.pd()

t.pencolor(“#b1c9e9”)

t.begin_fill()

for i in range(360):

x = drawX(4, i) - 60

y = drawY(1, i) + 120

t.goto(x, y)

t.goto(-56, 170)

for i in range(540):

x = drawX(4, i) - 60

y = drawY(1, i) + 170

t.goto(x, y)

t.goto(-64, 120)

t.fillcolor(“#b1c9e9”)

t.end_fill()

t.pencolor(“white”)

t.pensize(2)

for i in range(1, 6):

t.goto(-56, 120 + 10 * i)

t.pu()

t.goto(-64, 120 + 10 * i)

t.pd()

t.pu()

t.goto(-60, 170)

t.pd()

t.goto(-60, 180)

t.pensize(1)

t.pu()

t.goto(-56, 190)

t.pd()

t.pencolor(“#f1add1”)

t.begin_fill()

for i in range(360):

x = drawX(4, i) - 60

y = drawY(10, i) + 190

t.goto(x, y)

t.fillcolor(“#f1add1”)

t.end_fill()

15

t.pu()

t.goto(0, 130)

t.pd()

t.pencolor(“#b1c9e9”)

t.begin_fill()

for i in range(360):

x = drawX(4, i)

y = drawY(1, i) + 130

t.goto(x, y)

t.goto(4, 180)

for i in range(540):

x = drawX(4, i)

y = drawY(1, i) + 180

t.goto(x, y)

t.goto(-4, 130)

t.fillcolor(“#b1c9e9”)

t.end_fill()

t.pencolor(“white”)

t.pensize(2)

for i in range(1, 6):

t.goto(4, 130 + 10 * i)

t.pu()

t.goto(-4, 130 + 10 * i)

t.pd()

t.pu()

t.goto(0, 180)

t.pd()

t.goto(0, 190)

t.pensize(1)

t.pu()

t.goto(4, 200)

t.pd()

t.pencolor(“#f1add1”)

t.begin_fill()

for i in range(360):

x = drawX(4, i)

y = drawY(10, i) + 200

t.goto(x, y)

t.fillcolor(“#f1add1”)

t.end_fill()

16

t.pu()

t.goto(30, 110)

t.pd()

t.pencolor(“#b1c9e9”)

t.begin_fill()

for i in range(360):

x = drawX(4, i) + 30

y = drawY(1, i) + 110

t.goto(x, y)

t.goto(34, 160)

for i in range(540):

x = drawX(4, i) + 30

y = drawY(1, i) + 160

t.goto(x, y)

t.goto(26, 110)

t.fillcolor(“#b1c9e9”)

t.end_fill()

t.pencolor(“white”)

t.pensize(2)

for i in range(1, 6):

t.goto(34, 110 + 10 * i)

t.pu()

t.goto(26, 110 + 10 * i)

t.pd()

t.pu()

t.goto(30, 160)

t.pd()

t.goto(30, 170)

t.pensize(1)

t.pu()

t.goto(34, 180)

t.pd()

t.pencolor(“#f1add1”)

t.begin_fill()

for i in range(360):

x = drawX(4, i) + 30

y = drawY(10, i) + 180

t.goto(x, y)

t.fillcolor(“#f1add1”)

t.end_fill()

17

t.pu()

t.goto(-30, 110)

t.pd()

t.pencolor(“#b1c9e9”)

t.begin_fill()

for i in range(360):

x = drawX(4, i) - 30

y = drawY(1, i) + 110

t.goto(x, y)

t.goto(-26, 160)

for i in range(540):

x = drawX(4, i) - 30

y = drawY(1, i) + 160

t.goto(x, y)

t.goto(-34, 110)

t.fillcolor(“#b1c9e9”)

t.end_fill()

t.pencolor(“white”)

t.pensize(2)

for i in range(1, 6):

t.goto(-26, 110 + 10 * i)

t.pu()

t.goto(-34, 110 + 10 * i)
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。

深知大多数Python工程师,想要提升技能,往往是自己摸索成长或者是报班学习,但对于培训机构动则几千的学费,着实压力不小。自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!

因此收集整理了一份《2024年Python开发全套学习资料》,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。

img

img

img

img

img

img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上前端开发知识点,真正体系化!

由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新

如果你觉得这些内容对你有帮助,可以扫码获取!!!(备注Python)

同时减轻大家的负担。**

[外链图片转存中…(img-hXN5NbV1-1712798752090)]

[外链图片转存中…(img-sWZxgfVx-1712798752091)]

img

img

img

img

既有适合小白学习的零基础资料,也有适合3年以上经验的小伙伴深入学习提升的进阶课程,基本涵盖了95%以上前端开发知识点,真正体系化!

由于文件比较大,这里只是将部分目录大纲截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频,并且后续会持续更新

如果你觉得这些内容对你有帮助,可以扫码获取!!!(备注Python)

img
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值