用户:
正在加载中qwq查看:0 回复:0 评论:0 创建时间:2022-07-23T13:12:03
【作品展示】

【作品介绍】
虽然已经过去了,但依旧庆祝一下!
【作品源代码】
from turtle import *
speed(0)
#数字“1”
pencolor('#d90019') # 反复调配颜色(红色)
penup()
goto((-250), 200)
pendown()
begin_fill()
fillcolor('#d90019')
circle(15, 80, 360)
setheading(0)
forward(90)
right(100)
forward(240)
setheading(180)
forward(90)
left(80)
backward(180)
setheading(180)
forward(15)
left(80)
backward(10)
end_fill()
#党徽(小朋友画着实有点艰难)
fillcolor("#fdd232")
pencolor("#fdd232")
up()
goto(-195, 185)
seth(225)
down()
begin_fill()
fd(37.5)
right(90)
fd(15)
right(90)
fd(30)
right(90)
circle(3.75, 90)
end_fill()
up()
goto(-210, 185)
seth(-45)
down()
begin_fill()
for i in range(2):
forward(60)
right(90)
forward(11.25)
right(90)
end_fill()
up()
goto(-232.5, 155)
seth(-50)
down()
begin_fill()
circle(30, 180)
fd(5)
right(155)
circle(-34.5, 190)
end_fill()
up()
goto(-215, 130)
down()
dot(12)
#数字“00”及文字内容“1921”、“2021”
pencolor('#d90019')
begin_fill()
fillcolor('#d90019')
up()
goto(-130, -5)
down()
circle(-120)
end_fill()
begin_fill()
up()
goto(50, -5)
down()
circle(-120)
end_fill()
up()
pencolor("#fdd232")
fillcolor("#fdd232")
up()
goto(-94.5, 50)
down()
circle(-60)
up()
goto(-92, 54)
pensize(1.5)
down()
circle(-55)
up()
goto(-89.5, 58)
pensize(2)
down()
circle(-50)
up()
goto(-87, 62)
pensize(2.5)
down()
circle(-45)
up()
goto(-84.5, 66)
pensize(3)
down()
circle(-40)
up()
goto(90, 50)
down()
circle(-60)
up()
goto(92.5, 54)
pensize(1)
down()
circle(-55)
up()
goto(95, 58)
pensize(1.5)
down()
circle(-50)
up()
goto(97.5, 62)
pensize(2.5)
down()
circle(-45)
up()
goto(100, 66)
pensize(3)
down()
circle(-40)
pensize(3)
up()
goto(-84.5, 85)
down()
#在字体库中反复对比选用这个字体
write('1921', font=('可口可乐在乎体 楷体', 16))
up()
goto(101, 86)
down()
write('2021', font=('可口可乐在乎体 楷体', 16))
up()
goto(-270, -80)
pencolor('#d90019')
down()
#最接近的是黑体,如有原字体的大佬望指教
write('庆祝中国喵党成立100周年', font=('黑体', 28, 'bold'))
up()
goto(-260, -115)
down()
#英文最接近的是calibri,如有原字体的大佬望指教
write('The 100th Anniversary of The Founding of', font=('calibri', 20, 'bold'))
up()
goto(-200, -145)
write('The Communist Party of China', font=('calibri', 20, 'bold'))
【提示】
部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:
https://python.codemao.cn