spgl.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:SPGL 作者: wynand1004 项目源码 文件源码
def __init__(self,
                text,
                color,
                x = 0,
                y = 0,
                font_name = "Arial",
                font_size = 12,
                font_type = "normal",
                align = "left"):

        turtle.Turtle.__init__(self)
        self.hideturtle()
        self.penup()
        self.goto(x, y)
        self.color(color)
        self.font = (font_name, font_size, font_type)
        self.align = align

        # Attributes
        self.text = text


        # Append to master label list
        Game.labels.append(self)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号