猫史档案馆


【Python作品分享】set 2.0【作品秀】

用户:RainDawn_SATARainDawn_SATA查看:2 回复:3 评论:2 创建时间:2021-08-07T20:57:50


【作品展示】

center_image

 

【作品介绍】

set新增fillcolor

 

【作品源代码】

import turtle as t

class Setup():
    def __init__(self):
        pass

    def setup(speed:int,pensize:int,bgcolor:str,pencolor:str,fillcolor:str,screen_width:int,screen_hight:int,hide:int):
        t.speed(int(speed))
        t.pensize(int(pensize))
        t.bgcolor(str(bgcolor))
        t.pencolor(str(pencolor))
        t.fillcolor(str(fillcolor))
        t.screensize(int(screen_width), int(screen_hight))
        if hide==0:
            t.hideturtle()
        elif hide==1:
            t.showturtle()


if __name__=="__main__":
    Setup.setup(0,3,"black","white","white",400,400,0)
    t.done()

 

【提示】

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

https://python.codemao.cn


回复

上一页1 页 / 共 1下一页
wwwloadwwwload

你这个是什么编辑器???

点赞0


评论


RainDawn_SATARainDawn_SATA

center_image

点赞0


评论


RainDawn_SATARainDawn_SATA

回wwwload

点赞0


评论