launcher.py 文件源码

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

项目:python-embedded-launcher 作者: zsquareplusc 项目源码 文件源码
def wait_at_exit():
    """\
    Wait at exit, but only if console window was opened separately.
    """
    if not is_separate_console_window():
        return

    import atexit
    import msvcrt

    def wait_at_end():
        """Print a message and wait for a key"""
        sys.stderr.flush()
        sys.stdout.write('\n[Press any key]\n')
        sys.stdout.flush()
        msvcrt.getch()

    atexit.register(wait_at_end)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号