用户:
RainDawn_SATA查看:2 回复:3 评论:2 创建时间:2021-08-07T20:57:50
【作品展示】

【作品介绍】
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