noncanon_input.py 文件源码

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

项目:FrozenBottle 作者: freieslabor 项目源码 文件源码
def getbyt(self):
        res = None
        if len(self.buf)>0:
            res = self.buf[0]
            self.buf = self.buf[1:]
        elif self.posix:
            nw = sys.stdin.read(32)
            if len(nw)>0:
                self.buf = nw[1:]
                res = nw[0]
        else:
            if msvcrt.kbhit():
                res = msvcrt.getch()
        return res
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号