armbox.py 文件源码

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

项目:armbox 作者: zilogic-systems 项目源码 文件源码
def main(form):
    instruction, state = get_form_state(form)
    # print(instruction, state)

    path = None
    try:
        path = tempfile.mkdtemp()
        state, error = run_prog(instruction, state, path)
    finally:
        if path:
            shutil.rmtree(path)

    # print(error, state)

    template = jinja2.Template(html_view_tmpl)
    html = template.render(prog=instruction, error=error, **state)
    return html
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号