
python
文章平均质量分 72
lqsgd123
https://lqsgd123.github.io/
展开
-
Python3+OpenCV人脸识别
一、安装 1.打开命令行,输入pip install numpy,安装numpy。 2.安装opencv。 打开http://www.lfd.uci.edu/~gohlke/pythonlibs/,找到与你电脑python版本对应的版本进行下载。 python版本可以在命令行中输入python进行查询。 下载后把文件安装到python目录下的Lib\site-packages就可以了。原创 2017-08-07 16:47:41 · 4387 阅读 · 2 评论 -
python3爬虫简单小实例1.0
相关用法: find_all:find_all find_next:find_next strip() 方法用于移除字符串头尾指定的字符(默认为空格)。目的:获取书名和价格 爬取网站地址:https://www.packtpub.com/all一、书名书名在<div class="book-block-title" itemprop="name">的标签中,使用find_all找到所有匹配结原创 2017-08-27 12:14:02 · 587 阅读 · 0 评论 -
python3爬虫简单小实例2.0
相关用法: xlwt库:官方文档 xlwt设置宽度:Widths & Heights with xlwt + Python目的:获取所有书名和书价并存入Excel完整代码:# -*- coding: utf-8 -*-"""Created on Sat Aug 26 17:28:21 2017@author: 81294"""import urllibimport osimport s原创 2017-08-28 09:54:03 · 343 阅读 · 0 评论 -
python3爬取糗事百科实例
完整代码:# -*- coding: utf-8 -*-"""Spyder EditorThis is a temporary script file."""import requestsfrom bs4 import BeautifulSoupfrom time import sleepimport osimport shutildef get_qb(page_num): l原创 2017-08-28 16:23:36 · 563 阅读 · 0 评论