上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 77 下一页
摘要: random numpy.random.rand(3,2) 内存操作 numpy.getbuffer() numpy.frombuffer() list to npy numpy.fromiter(llb,np.int) 阅读全文
posted @ 2016-04-01 17:16 ahuo 阅读(253) 评论(0) 推荐(0)
摘要: HostMonitor 可以对windows和linux下的主机进行很多信息的监控,还提供web方式查看 阅读全文
posted @ 2016-04-01 09:36 ahuo 阅读(1354) 评论(0) 推荐(0)
摘要: 1. apt-get install mysql-server 2. apt-get isntall mysql-client 修改 /etc/mysql/my.cnf #bind-address = 127.0.0.1 本地登录 mysql -u root -p grant all on *.* 阅读全文
posted @ 2016-03-22 09:31 ahuo 阅读(242) 评论(0) 推荐(0)
摘要: from poster.encode import multipart_encode from poster.streaminghttp import register_openers import urllib2 register_openers() #datagen, headers = multipart_encode({"Img": open("1.jpg", "rb")}) #re... 阅读全文
posted @ 2016-03-16 16:45 ahuo 阅读(561) 评论(0) 推荐(0)
摘要: 1.使用ssl创建未经验证的上下文,在urlopen中传入上下文参数 import sslimport urllib2 context = ssl._create_unverified_context()print urllib2.urlopen("https://www.12306.cn/", c 阅读全文
posted @ 2016-03-07 11:08 ahuo 阅读(2009) 评论(0) 推荐(0)
摘要: find src -type d | sed 's/src/mkdir -p dst/'|sh 阅读全文
posted @ 2016-03-02 11:14 ahuo 阅读(1206) 评论(0) 推荐(0)
摘要: 执行 dlib.__file__ 输出 '/anaconda2/lib/python2.7/site-packages/dlib/__init__.pyc' 阅读全文
posted @ 2016-02-25 11:04 ahuo 阅读(1495) 评论(0) 推荐(0)
摘要: 解决方案:pip install pydot2 阅读全文
posted @ 2016-01-12 09:37 ahuo 阅读(346) 评论(0) 推荐(0)
摘要: 一、python中对文件、文件夹操作时经常用到的os模块和shutil模块常用方法。1.得到当前工作目录,即当前Python脚本工作的目录路径: os.getcwd()2.返回指定目录下的所有文件和目录名:os.listdir()3.函数用来删除一个文件:os.remove()4.删除多个目录:os... 阅读全文
posted @ 2016-01-08 09:03 ahuo 阅读(1819) 评论(1) 推荐(0)
摘要: lsusbcat /sys/kernel/debug/usb/devicesT: Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#= 1 Spd=12 MxCh= 2B: Alloc= 17/900 us ( 2%), #Int= 1, #Iso= 0D: Ver=... 阅读全文
posted @ 2015-12-31 13:59 ahuo 阅读(2249) 评论(0) 推荐(0)
摘要: root 登录sudo gedit /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf加:greeter-show-manual-login=true设置密码:sudo passwd root右键在当前位置打开终端sudo apt-get install... 阅读全文
posted @ 2015-12-30 10:25 ahuo 阅读(290) 评论(0) 推荐(0)
摘要: csv2npycccsv=numpy.genfromtxt('/root/c.csv', delimiter = ',')buf2npyimga=numpy.frombuffer(buf,numpy.uint8) 阅读全文
posted @ 2015-12-25 08:59 ahuo 阅读(395) 评论(0) 推荐(0)
摘要: for dir in `find ./ -type d ` ;do echo -n "$dir " ;find $dir -type f | wc -l ;echo "" ;done;./4336694 59./0630088 38./0001667 196./3545234 5./3840810 ... 阅读全文
posted @ 2015-12-23 13:55 ahuo 阅读(315) 评论(0) 推荐(0)
摘要: def findface(image):import cv2 frame=cv2.imread('n1.jpg')classifier=cv2.CascadeClassifier("haarcascade_frontalface_alt.xml")minSize=(10,10) faceRects=... 阅读全文
posted @ 2015-11-20 16:10 ahuo 阅读(347) 评论(0) 推荐(0)
摘要: private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e){ WebBrowser WebCtl = webB... 阅读全文
posted @ 2015-11-10 09:27 ahuo 阅读(1054) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 77 下一页