cmds.py 文件源码

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

项目:sea 作者: shanbay 项目源码 文件源码
def console():
    banner = """
        [Sea Console]:
        the following vars are included:
        `app` (the current app)
        """
    ctx = {'app': current_app}
    try:
        from IPython import embed
        h, kwargs = embed, dict(banner1=banner, user_ns=ctx)
    except ImportError:
        import code
        h, kwargs = code.interact, dict(banner=banner, local=ctx)
    h(**kwargs)
    return 0
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号