uimode.py 文件源码

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

项目:multi-cloud-control 作者: robertpeteuil 项目源码 文件源码
def input_flush():
    """Flush the input buffer on posix and windows."""
    try:
        import sys, termios  # noqa
        termios.tcflush(sys.stdin, termios.TCIFLUSH)
    except ImportError:
        import msvcrt
        while msvcrt.kbhit():
            msvcrt.getch()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号