Home
Sign Up
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
V2EX
›
Python
python 的 requests 发起请求的时候能不能指定本地的网卡?
displayabc
·
Aug 29, 2014
· 5845 views
This topic created in 4481 days ago, the information mentioned may be changed or developed.
多块网卡多ip,如何指定requests使用哪个?
Requests
网卡
指定
3 replies
•
2014-08-29 23:22:08 +08:00
freefcw
Aug 29, 2014
1
这个应该是路由级别的事情
mengskysama
Aug 29, 2014
1
2
这个是底层管的,你可以改他的底层实现, 看urllib3的C模块,加一个接口出来吧加个bind函数。
dorentus
Aug 29, 2014
2
3
http://stackoverflow.com/questions/12585317/requests-bind-to-an-ip
http://stackoverflow.com/questions/1150332/source-interface-with-python-and-urllib2
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
1885 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 23ms ·
UTC 07:27
·
PVG 15:27
·
LAX 23:27
·
JFK 02:27
♥ Do have faith in what you're doing.
❯