![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
python
listenn1ng
这个作者很懒,什么都没留下…
展开
-
requests问题记录
批量调用同一个接口获取数据时出现以下错误 HTTPConnectionPool(host='dds.cr.usgs.gov', port=80): Max retries exceeded with url 是由于 http连接太多没有关闭 导致的。使用了requests库 解决办法为 1 增加重试连接次数 requests.adapters.DEFAULT_RETRIES = 5 ...转载 2018-07-31 17:09:28 · 2407 阅读 · 0 评论 -
python多线程
这里写自定义目录标题1 .线程创建使用Thread创建继承Thread方式2.守护线程3. 线程加入到当前线程(join) 1 .线程创建 使用Thread创建 import threading import time def a_thread(a): print("a_thread started") time.sleep(2) print("a_thread end...原创 2018-12-16 22:39:07 · 106 阅读 · 0 评论 -
pip时Unable to locate finder for pip._vendor.distlib的问题
1.卸载pip: python -m pip uninstall pip setuptools 2.安装最新pip 下载 https://bootstrap.pypa.io/get-pip.py 执行python get-pip.py转载 2019-03-03 21:36:00 · 1713 阅读 · 0 评论