推荐学习书目
› 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
SlipStupig
V2EX  ›  Python

Python 调用第三方组件可以一直保持吗?

  •  
  •   SlipStupig · Aug 2, 2017 · 2609 views
    This topic created in 3388 days ago, the information mentioned may be changed or developed.
    我用 Subprocess 调用 awk 去处理来自字符串(由于一些特殊原因无法更换 python re ),但是每次调用完了之后 awk 会自动退出,这样感觉效率不高,有什么办法可以不退出一直给新参数,让 awk 不停的处理,然后我还能读到输出的内容
    5 replies  •  2017-08-03 11:57:39 +08:00
    est
    est
    Aug 2, 2017
    1
    你发现了 unix socket
    你发现了 unix socket 并发
    你发现了 tcp
    你发现了 集群
    你发明了分布式 awk 集群
    SlipStupig
    SlipStupig
    OP
    Aug 2, 2017
    2
    @est 没办法啊被逼的
    kaneg
    kaneg
    Aug 2, 2017 via iPhone
    3
    是不是可以考虑管道
    julyclyde
    julyclyde
    Aug 3, 2017
    4
    CGI vs FastCGI
    lolizeppelin
    lolizeppelin
    Aug 3, 2017 via Android
    5
    把 awk 代码做到 Python 里 用 c 调用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   968 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 84ms · UTC 18:49 · PVG 02:49 · LAX 10:49 · JFK 13:49
    ♥ Do have faith in what you're doing.