猫史档案馆


【Python作品分享】新的作品【求助帖】

用户:指令者指令者查看:0 回复:1 评论:0 创建时间:2019-12-15T18:29:43


【作品展示】

center_image

 

【作品介绍】

怎么保存????????????

急!!!!!!!!!!!!!!!

 

【作品源代码】

import turtle
from PIL import Image, ImageDraw
t = turtle.Turtle()
t.up()
t.goto(-200, 200)
t.down()
t.begin_fill()
t.fillcolor("red")
t.pencolor("red")
for i in range(2):
    t.forward(438)
    t.right(90)
    t.forward(292)
    t.right(90)
t.end_fill()

t.fillcolor("yellow")
t.pencolor("yellow")
t.up()
t.goto(-170, 145)
t.down()
t.begin_fill()
for i in range(5):
    t.forward(50)
    t.right(144)
t.end_fill()

t.up()
t.goto(-100, 180)
t.setheading(305)
t.down()
t.begin_fill()
for i in range(5):
    t.forward(20)
    t.right(144)
t.end_fill()

t.up()
t.goto(-85, 150)
t.setheading(30)
t.down()
t.begin_fill()
for i in range(5):
    t.forward(20)
    t.right(144)
t.end_fill()

t.up()
t.goto(-85, 120)
t.setheading(3)
t.down()
t.begin_fill()
for i in range(5):
    t.forward(20)
    t.right(144)
t.end_fill()

t.up()
t.goto(-100, 100)
t.setheading(300)
t.down()
t.begin_fill()
for i in range(5):
    t.forward(20)
    t.right(144)
t.end_fill()
t.hideturtle()

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
北酱北酱

沙发

点赞0


评论