上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页
摘要: python爬爬爬之单网页html页面爬取作者:vpoetmail:vpoet_sir@163.com注:随意copy 不用告诉我1 #coding:utf-8 2 import urllib2 3 Response=urllib2.urlopen("http://www.baidu.com");4... 阅读全文
posted @ 2015-06-23 20:12 vpoet 阅读(550) 评论(0) 推荐(0) 编辑
摘要: python之花瓣美女下载作者:vpoetmail:vpoet_sir@163.com注:代码随意copy 不用告诉我主要功能: 1.搜索花瓣http://huaban.com/下的图片 2.选定下载图片数目 3.显示下载进度 4.创建目录并下载到桌面注释少,凑合看。 1 #coding: ... 阅读全文
posted @ 2015-06-23 19:50 vpoet 阅读(291) 评论(0) 推荐(0) 编辑
摘要: 窗口处理2.1 窗口简介2.2.1 创建普通窗口(CreateWindow、CreateWindowEx)2.2.2 关闭窗口(CloseWindow)2.2.3 销毁窗口(DestroyWindow)2.3 窗口之间的关系2.3.1 父子关系(SetParent、GetParent、IsChil... 阅读全文
posted @ 2015-03-31 20:47 vpoet 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 句柄获取方法(获取该窗口的句柄后,即可向该窗口类类发送消息、处理程序):0。获取所在类窗口的句柄:this->m_hwnd1。主窗口的句柄:无论在主窗口类内,还是子窗口类内,获取主窗口句柄的方法:AfxGetMainWnd()->m_hWnd,如:::SendMessage(AfxGetMainW... 阅读全文
posted @ 2015-03-17 21:57 vpoet 阅读(385) 评论(0) 推荐(0) 编辑
摘要: 全局变量一般这样定义:1。在一类的.cpp中定义 int myInt;然后再在要用到的地方的.cpp里extern int myInt;这样就可以用了。2。在stdafx.cpp中加入:int myInt;然后在stdafx.h中加入:extern int myInt这样定义以后无论在什么文件中都... 阅读全文
posted @ 2015-03-15 18:52 vpoet 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 1 import re 2 import urllib 3 import os 4 5 def rename(name): 6 name = name + '.jpg' 7 return name 8 9 def getHtml(url):10 page = ur... 阅读全文
posted @ 2015-01-29 21:53 vpoet 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 关于下面两个主要函数的讲解:1 cv::getRotationMatrix2D(center, angle, scale); 2 cv::warpAffine(image, rotateImg, rotateMat, image.size()); 下面这份代码用于实现对图像的缩放与旋转。... 阅读全文
posted @ 2015-01-07 20:38 vpoet 阅读(298) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 1 //////////////////////////////////////////////////////////////////////// 2 // 3 // 该程序产生一个窗口10s 如果在10s内滑动条移动到20则将lena.jpg图片加载到 4 // 窗口显示 满10s窗... 阅读全文
posted @ 2015-01-06 22:00 vpoet 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 直接上代码: 1 //////////////////////////////////////////////////////////////////////// 2 // 3 // 该程序从文件中读入一幅图像,响应在图片上的左键右键消息 4 // 并显示点击图像的坐标,然后显示出来. 5 // ... 阅读全文
posted @ 2015-01-06 20:59 vpoet 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 第一个opencv测试程序:不多说,直接上代码,代码注释很详尽: 1 //////////////////////////////////////////////////////////////////////// 2 // 3 // 该程序从文件中读入一幅图像,将之反色,然后显示出来. 4 //... 阅读全文
posted @ 2015-01-06 20:19 vpoet 阅读(449) 评论(0) 推荐(0) 编辑
摘要: Linux内核编译是一件简单却费事的事。但是独立的编译linux内核会帮助你很好的理解Linux内核的工作机理。首先编译linux内核我们需要在当前linux操作系统下安装gcc编译器,因为我是Centos distribution版本1 yum install gcc接下来安装依赖环境:1 yum... 阅读全文
posted @ 2014-12-29 15:47 vpoet 阅读(185) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 5 #define maxn 200 6 void main() 7 { 8 FILE *fp; 9 int s[maxn][maxn];10 int i,j;11 if((fp=fopen("d:\\temp\\test.t... 阅读全文
posted @ 2014-12-18 17:39 vpoet 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 函数讲解部分参考http://net.pku.edu.cn/~yhf/linux_c/calloc(配置内存空间) 相关函数 malloc,free,realloc,brk表头文件 #include 定义函数 void *calloc(size_t nmemb,size_t size);函数说明 c... 阅读全文
posted @ 2014-12-17 18:57 vpoet 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 函数讲解部分参考http://net.pku.edu.cn/~yhf/linux_c/atof(将字符串转换成浮点型数) 相关函数atoi,atol,strtod,strtol,strtoul表头文件#include 定义函数double atof(const char *nptr);函数说明ato... 阅读全文
posted @ 2014-12-16 21:53 vpoet 阅读(426) 评论(0) 推荐(0) 编辑
摘要: 函数讲解部分参考http://net.pku.edu.cn/~yhf/linux_c/isalnum(测试字符是否为英文或数字)相关函数 isalpha,isdigit,islower,isupper表头文件 #include定义函数 int isalnum (int c)函数说明 检查参数c是否为... 阅读全文
posted @ 2014-12-16 21:32 vpoet 阅读(192) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页