上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页
摘要: 示例代码: 阅读全文
posted @ 2017-09-14 23:45 胡卫雄 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: 一 创建scrapy项目 运行命令: 目录结构 二 定义Item容器 Item是保存爬取到数据的容器,其使用方法和python字典类似,并且提供了额外的保护机制来避免拼写错误导致的未定义字段错误 item的内容示例如下: 三 编写爬虫 写在spiders文件夹下: Spider是用户编写用于从网站上 阅读全文
posted @ 2017-09-09 11:47 胡卫雄 阅读(190) 评论(0) 推荐(0) 编辑
摘要: import urllib.request from bs4 import BeautifulSoup url = "https://movie.douban.com/chart" req = urllib.request.Request(url) req.add_header("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64; r... 阅读全文
posted @ 2017-08-30 10:34 胡卫雄 阅读(173) 评论(0) 推荐(0) 编辑
摘要: #include #include void DirectInsertSort(int a[],int n) { int i,j,temp; for( i=1; ia[i]){ temp = a[i]; for(j=i-1;a[j]>temp&&j>=0;j--) { a[j+1] = a... 阅读全文
posted @ 2017-08-28 21:06 胡卫雄 阅读(141) 评论(0) 推荐(0) 编辑
摘要: 本文适用于想在window下使用python 3 的童鞋,安装openCV 有问题的参考 一、你要确定自己的python版本是3.x,在命令行窗口输入python 本人使用的是python 3.6 二、需要下载和安装Microsoft Visual C++ 2015 Redistributable, 阅读全文
posted @ 2017-08-27 09:18 胡卫雄 阅读(13432) 评论(0) 推荐(0) 编辑
摘要: #include void SelectSort(int a[],int n){ int i,j,min,temp; for( i=0;i<n-1;i++ ){ min = i; for(j=i+1;j<n;j++) { if ( a[j] < a[min]){ min = j; ... 阅读全文
posted @ 2017-08-27 00:44 胡卫雄 阅读(123) 评论(0) 推荐(0) 编辑
摘要: 代码: 阅读全文
posted @ 2017-08-27 00:21 胡卫雄 阅读(1430) 评论(0) 推荐(0) 编辑
摘要: 菜单栏代码: 运行截图: 弹出菜单代码: 阅读全文
posted @ 2017-08-05 15:52 胡卫雄 阅读(2150) 评论(0) 推荐(0) 编辑
摘要: 代码如下: 运行截图: 阅读全文
posted @ 2017-08-05 15:09 胡卫雄 阅读(961) 评论(0) 推荐(0) 编辑
摘要: 代码: 运行图: 阅读全文
posted @ 2017-08-05 15:03 胡卫雄 阅读(1391) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 15 下一页