ttbp.py 文件源码

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

项目:ttbp 作者: modgethanc 项目源码 文件源码
def start():
    '''
    main engine head

    * called on program start
    * calls config check
    * proceeds to main menu
    * handles ^c and ^d ejects
    '''

    redraw()
    print("""
if you don't want to be here at any point, press <ctrl-d> and it'll all go away.
just keep in mind that you might lose anything you've started here.\
""")

    try:
        print(check_init())
    except EOFError:
        print(stop())
        return

    ##
    redraw()

    while 1:
        try:
            print(main_menu())
        except EOFError:
            print(stop())
            break
        except KeyboardInterrupt:
            redraw(EJECT)
        else:
            break
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号