python
goodmorning!
这个作者很懒,什么都没留下…
展开
-
opencv 依赖库 centos 环境配置
yum install libSM-1.2.2-2.el7.x86_64 --setopt=protected_multilib=falseyum install libXrender-0.9.10-1.el7.x86_64 --setopt=protected_multilib=falseyum install libXext.x86_64--setopt=protected_multilib=false原创 2020-06-16 19:04:19 · 344 阅读 · 0 评论 -
urllib3连接池参数pool_connections, pool_maxsize相关源码解析
问题复现本地新建request.Session, 多线程打开url并发较高时, 出现以下报错:requests.packages.urllib3.connectionpool:Connection pool is full, discarding connection测试代码def test_pool_max_size(): # 测试 pool_maxsize 对多线...原创 2018-10-07 16:24:11 · 5370 阅读 · 0 评论 -
python问题在线定位
pstreeapt-get install psmisciftop 查看网络流量apt-get install iftopstrace 查看系统调用apt-get install stracegdb python查看调用栈apt-get install gdb python2.7-dbghttps://github.com/python/cpython/blob/master/To...原创 2019-06-12 18:37:10 · 731 阅读 · 0 评论 -
python绘制Mandelbrot分形 详细注释版
import numpy as npimport matplotlib.pyplot as plt def mandelbrot( h,w, maxit=5 ): """Returns an image of the Mandelbrot fractal of size (h,w).""" y,x = np.ogrid[ -1.4:1.4:h*1j, -2:0.8:w*1j ]...原创 2019-07-04 12:14:52 · 865 阅读 · 0 评论