猫史档案馆


【Python作品分享】母亲节贺卡【作品秀】

用户:WT水塔鹅WT水塔鹅查看:0 回复:0 评论:0 创建时间:2020-05-15T19:17:32


【作品展示】

center_image

 

【作品介绍】

 

【作品源代码】

import turtle
import time

__Pen = turtle.Pen()


pen = turtle.Pen()
__Pen.hideturtle()
pen.pencolor("#ffccff")
pen.fillcolor("#ffccff")
pen.setheading(270)
pen.forward(300)
pen.clear()
pen.setheading(45)
pen.begin_fill()
pen.circle(200, steps=4)
pen.end_fill()
pen.setheading(90)
pen.forward(150)
pen.setheading(180)
pen.forward(185)
pen.pencolor("#6600cc")
pen.write('妈妈喵你', font = ('Arial', 13, 'normal'))
pen.pencolor("#ffccff")
pen.setheading(270)
pen.forward(50)
pen.setheading(0)
pen.pencolor("#6600cc")
pen.forward(40)
pen.circle(50)
pen.pencolor("#ffccff")
pen.setheading(270)
pen.forward(150)
pen.pencolor("#ffcc33")
pen.write('——Andy', font = ('Arial', 13, 'italic'))
pen.pencolor("#ffccff")
for __count in range(4):
    pen.forward(150)

 

【提示】

部分含有Python第三方库相关内容的作品,在海龟编辑器网页端无法运行哦!如遇到这种情况,可以打开下面的链接,下载海龟编辑器客户端:

https://python.codemao.cn


回复

上一页1 页 / 共 0下一页