V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
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
invisibleme
V2EX  ›  Python

Python 多线程分析页面并下载文件的最佳实践是?

  •  
  •   invisibleme · May 18, 2015 · 1918 views
    This topic created in 3997 days ago, the information mentioned may be changed or developed.

    我用了一个简单的map和Threadpool做多线程,url都已经准备好了
    现在的问题是,线程跑一会儿吧,咦,默默地不知道到哪里去了……
    所以,问题可能的原因是?或:我现在应该如何查到问题?

    另外,我不觉得我这样的写法是最好的,写的时候还是比较求快,还想知道这么一个简单的需求,如何实现更好呢?这里的好的标准是:
    1)简单,高效,杀鸡就别用牛刀了,可以牺牲一定的可靠性
    2)能快速用上,避免自己造轮子,手写生产者模式等等就别来了……

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3796 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 58ms · UTC 04:39 · PVG 12:39 · LAX 21:39 · JFK 00:39
    ♥ Do have faith in what you're doing.