推荐学习书目
› 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 · 3175 views
    This topic created in 3656 days ago, the information mentioned may be changed or developed.
    在系统中执行一个 py 脚本 想把这个脚本的执行过程实时通过 web 输出出来,目前用的是 flask 框架,是否有好的处理方式,谢谢

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

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