随笔分类 -  python

python
摘要:1、服务器 利用SimpleHTTPServer,命令行运行 2、客户端 利用urllib等,方法有3个 阅读全文
posted @ 2017-05-04 15:53 lulu47 阅读(619) 评论(0) 推荐(0)
摘要:客户端(pythonista) 服务器(树莓派) 阅读全文
posted @ 2017-05-03 19:21 lulu47 阅读(1842) 评论(0) 推荐(0)
摘要:转载:http://blog.sina.com.cn/s/blog_80ce3a550102w26x.html Convert between Python tuple and list Convert between Python tuple, list and NumPy 1D array Co 阅读全文
posted @ 2017-04-26 11:36 lulu47 阅读(1572) 评论(0) 推荐(0)
摘要:创建矩阵 1维 多维 修改矩阵维数 1、原矩阵x.shape = (3, 4, 5) 通过以下改变各维数 [注:改前后维数积相等] 2、增维 原x.shape = (100,) 通过以下,将一维矩阵插值变为二维矩阵 [注:-1(负数)的话,程序自动计算该值,本例子为50,但只能使用1次] 阅读全文
posted @ 2016-08-23 15:25 lulu47
摘要:1、库suds库,只能做webserver客户端,轻量化,使用方便。安装使用pip。2、使用如有webserver情况如下:url:http://10.110.35.41:8980/wsservice/ABCD?wsdl自定义变量1:class1{string s11; string s12}自定义... 阅读全文
posted @ 2015-12-11 09:37 lulu47 阅读(308) 评论(0) 推荐(0)
摘要:上代码import fcntlimport structimport mmapimport contextlibimport osimport timeimport numpy as npimport cv2src = cv2.imread('./1.bmp', cv2.IMREAD_COLOR)i... 阅读全文
posted @ 2015-12-05 12:28 lulu47 阅读(956) 评论(0) 推荐(0)
摘要:1、写文件with open('??', 'r+b') as f: with contextlib.closing(mmap.mmap(f.fileno(), size, flags=mmap.MAP_SHARED, access=mmap.ACCESS_WRITE)) as mm: m... 阅读全文
posted @ 2015-12-05 10:22 lulu47 阅读(525) 评论(0) 推荐(0)
摘要:核心代码import wx, cv2import numpy as np# Start with a numpy array style image I'll call "source"# convert the colorspace to RGB from cv2 standard BGR, en... 阅读全文
posted @ 2015-10-22 17:11 lulu47 阅读(2513) 评论(0) 推荐(0)
摘要:python pyinstaller.py [-Fw] ???.py-F 将相关配件(dll、oxc)合成到单个exe文件-w exe启动时不打开console窗口 阅读全文
posted @ 2015-08-06 14:32 lulu47 阅读(133) 评论(0) 推荐(0)