moreplus.py 文件源码

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

项目:python_programing 作者: lzhaoyang 项目源码 文件源码
def getreply():

    if sys.stdin.isatty():
        return input('?')
    else:
        if sys.platform[:3]=="win":
            import msvcrt
            msvcrt.putch(b'?')
            key=msvcrt.getche()
            msvcrt.putch(b'\n')
            return key
        else:
            assert False,'platform not supported'
            # linux?:open('/dev/tty').readline()[:-1]
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号