ironpython_console.py 文件源码

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

项目:isf 作者: w3h 项目源码 文件源码
def size(self, width=None, height=None):
        '''Set/get window size.'''
        sc = System.Console
        if width is not None and height is not None:
            sc.BufferWidth, sc.BufferHeight = width,height
        else:
            return sc.BufferWidth, sc.BufferHeight

        if width is not None and height is not None:
            sc.WindowWidth, sc.WindowHeight = width,height
        else:
            return sc.WindowWidth - 1, sc.WindowHeight - 1
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号