推荐学习书目
› 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 · 2478 views
    This topic created in 3343 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
        1
    est  
       Aug 2, 2017
    你发现了 unix socket
    你发现了 unix socket 并发
    你发现了 tcp
    你发现了 集群
    你发明了分布式 awk 集群
    SlipStupig
        2
    SlipStupig  
    OP
       Aug 2, 2017
    @est 没办法啊被逼的
    kaneg
        3
    kaneg  
       Aug 2, 2017 via iPhone
    是不是可以考虑管道
    julyclyde
        4
    julyclyde  
       Aug 3, 2017
    CGI vs FastCGI
    lolizeppelin
        5
    lolizeppelin  
       Aug 3, 2017 via Android
    把 awk 代码做到 Python 里 用 c 调用
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1368 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 16:35 · PVG 00:35 · LAX 09:35 · JFK 12:35
    ♥ Do have faith in what you're doing.