猫史档案馆


【Python作品分享】你喜欢谁?!!!!【作品秀】

用户:点点滴滴-JSV点点滴滴-JSV查看:0 回复:2 评论:0 创建时间:2020-05-30T17:16:52


【作品展示】

center_image

 

【作品介绍】

此作品是为了让人坦白说出自己 心声,或者想告白者使用

 

【作品源代码】

import turtle
import time

__Pen = turtle.Pen()


__Pen.speed(20)
__Pen.penup()
__Pen.pencolor("#ff0000")
__Pen.backward(200)
__Pen.pendown()
__Pen.pensize(5)
__Pen.write('I LOVE YUO')
__Pen.penup()
__Pen.forward(300)
__Pen.pendown()
__Pen.pencolor("#6600cc")
__Pen.pensize(1)
for __count in range(2):
    __Pen.circle(50)
    __Pen.circle(30, steps=9)
    turtle.bgcolor("#00cccc")
    __Pen.pencolor("#66ff99")
    __Pen.fillcolor("#3333ff")
    __Pen.begin_fill()
    __Pen.circle(50)
    __Pen.circle(30, steps=5)
    turtle.bgcolor("#009900")
    __Pen.pencolor("#000099")
    __Pen.fillcolor("#6600cc")
    __Pen.begin_fill()
    __Pen.circle(50)
    __Pen.circle(30, steps=5)
    __Pen.circle(50)
    __Pen.circle(30, steps=5)
    turtle.bgcolor("#000000")
    __Pen.pencolor("#33ff33")
    __Pen.fillcolor("#660000")
    __Pen.begin_fill()
    __Pen.circle(50)
    __Pen.circle(30, steps=5)
    turtle.bgcolor("#ffccff")
    __Pen.pencolor("#ff0000")
    __Pen.fillcolor("#33ff33")
    __Pen.begin_fill()
    __Pen.circle(50)
    __Pen.circle(30, steps=5)
if turtle.textinput('对话框', '请输入I LOVE YOU 的对象'):
    time.sleep(1)

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
凚离29凚离29

喜欢我自己

点赞0


评论


豁达的飞叶龙uizZ豁达的飞叶龙uizZ

看起来挺好的,只是有一些单一

 

点赞0


评论