ironpython_console.py 文件源码

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

项目:shadowbroker-auto 作者: wrfly 项目源码 文件源码
def rectangle(self, rect, attr=None, fill=u' '):
        u'''Fill Rectangle.'''
        oldtop = self.WindowTop
        oldpos = self.pos()
        #raise NotImplementedError
        x0, y0, x1, y1 = rect
        if attr is None:
            attr = self.attr
        if fill:
            rowfill = fill[:1] * abs(x1 - x0)
        else:
            rowfill = u' ' * abs(x1 - x0)
        for y in range(y0, y1):
                System.Console.SetCursorPosition(x0, y)
                self.write_color(rowfill, attr)
        self.pos(*oldpos)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号