推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
hellotest
V2EX  ›  Python

python web 展示执行过程

  •  
  •   hellotest · Sep 27, 2016 · 3292 views
    This topic created in 3704 days ago, the information mentioned may be changed or developed.
    在系统中执行一个 py 脚本 想把这个脚本的执行过程实时通过 web 输出出来,目前用的是 flask 框架,是否有好的处理方式,谢谢

    是实时展示,就是执行一行,显示一行,而不是展示命令执行的结果

    谢谢
    cheetah
    cheetah
    Sep 27, 2016 via iPhone
    1
    flask-socket
    hellotest
    hellotest
    OP
    Sep 27, 2016
    3
    @cheetah 这个能解决吗? 我查了相关资料,没看到具体方式啊
    cheetah
    cheetah
    Sep 27, 2016
    4
    @hellotest 你需要先了解下 websocket
    yanzixuan
    yanzixuan
    Sep 27, 2016
    5
    没人推荐 flask-socketio 么。。
    hellotest
    hellotest
    OP
    Sep 27, 2016
    6
    @yanzixuan 恩 这个模块好像资料更多啊
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2165 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 00:12 · PVG 08:12 · LAX 16:12 · JFK 19:12
    ♥ Do have faith in what you're doing.