<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Levy_96的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Levy_96</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Levy_96]]></copyright><item><title><![CDATA[从 cached_property 理解描述符]]></title><link>https://blog.csdn.net/Levy_96/article/details/86598004</link><guid>https://blog.csdn.net/Levy_96/article/details/86598004</guid><author>Levy_96</author><pubDate>Mon, 28 Jan 2019 15:43:07 +0800</pubDate><description><![CDATA[疑问产生
首先，运行取自Daniel Roy Greenfeld的文章 cached-property: Don’t copy/paste code 的一段代码：
import time


class cached_property(object):
    def __init__(self, func):
        self.__doc__ = getattr(func, '__doc...]]></description><category></category></item><item><title><![CDATA[ImportError: No module named *** 问题？——理解绝对导入和相对导入]]></title><link>https://blog.csdn.net/Levy_96/article/details/86629444</link><guid>https://blog.csdn.net/Levy_96/article/details/86629444</guid><author>Levy_96</author><pubDate>Thu, 24 Jan 2019 19:35:33 +0800</pubDate><description><![CDATA[文章目录前言解决 ImportError: No module named ***如何使用相对导入from __future__ import absolute_import应该用绝对导入还是相对导入？
前言
Python 开发者一定对ImportError: No module named ***这个报错不陌生，特别是对于初学者来说，代码在本地 PyCharm 中运行得好好的，一放到服务器上用命...]]></description><category></category></item><item><title><![CDATA[python+selenium如何调用IEDriver添加代理]]></title><link>https://blog.csdn.net/Levy_96/article/details/83656959</link><guid>https://blog.csdn.net/Levy_96/article/details/83656959</guid><author>Levy_96</author><pubDate>Fri, 02 Nov 2018 16:51:20 +0800</pubDate><description><![CDATA[前言
对于一个合格的爬虫来说，代理IP是不可缺少的组成部分。说来惭愧，我们公司一些基于IEDriver的爬虫在很长一段时间中都是在没有使用代理的状态下运行的。给IE浏览器配置代理的常规方法设置的是全局代理，势必会影响到运行在同一台机器上的不同爬虫进程，而我们没有找到能够给IEDriver配置单进程代理的方法，相对而言ChromeDriver就省心很多了。
关于IEDriver的使用以及代理设置的资...]]></description><category></category></item><item><title><![CDATA[python图形验证码识别]]></title><link>https://blog.csdn.net/Levy_96/article/details/83277399</link><guid>https://blog.csdn.net/Levy_96/article/details/83277399</guid><author>Levy_96</author><pubDate>Thu, 25 Oct 2018 16:04:38 +0800</pubDate><description><![CDATA[前言
思路

对图像进行灰度化、二值化处理
根据图像特征进行切割，提取单个字符内容
针对单个字符进行机器学习
识别

实践
环境安装
图像预处理 - 灰度、二值化
首先用PIL内置的convert方法进行灰度处理，经过灰度后，每个像素点的颜色值从RGB的3维变成了1维，值的范围为0-255，值越大，颜色越倾向于白，或者说颜色更淡。

观察灰度后的图片，可以发现字符的颜色更深，背景、干扰线的颜色更浅...]]></description><category></category></item><item><title><![CDATA[Python2.7实现PDF转图片需求]]></title><link>https://blog.csdn.net/Levy_96/article/details/83379373</link><guid>https://blog.csdn.net/Levy_96/article/details/83379373</guid><author>Levy_96</author><pubDate>Thu, 25 Oct 2018 14:44:41 +0800</pubDate><description><![CDATA[文章目录环境安装Mac环境Linux环境Windows环境代码实现注意事项
环境安装
PDF转IMG需要两个Python模块：PyPDF2(1.26.0)和Wand(0.4.4)，其中Wand安装前需要先安装软件ImageMagick，由于7.xx版本的接口改变，必须安装6.xx版本，以及GhostScript。PyPDF2和Wand可以直接使用pip安装，主要两个软件以及环境配置需要根据系统环境...]]></description><category></category></item><item><title><![CDATA[关于Selenuim Webdriver查找可能不存在的页面元素的问题]]></title><link>https://blog.csdn.net/Levy_96/article/details/78802743</link><guid>https://blog.csdn.net/Levy_96/article/details/78802743</guid><author>Levy_96</author><pubDate>Thu, 14 Dec 2017 14:59:59 +0800</pubDate><description><![CDATA[在Webdriver的很多使用场景下，需要去判断页面上是否出现某个元素，例如提交登录后判断是否有错误信息。此时有两种情况：1.登录失败，有错误信息；2.登录成功，无错误信息。在第一种情况下，通过webdriver的find系列方法肯定能获取到错误信息，但是在第二种情况下，让webdriver去查找一个不存在的页面元素就会出现问题。]]></description><category></category></item><item><title><![CDATA[抓取国家统计局区划、城乡划分代码的简易python爬虫实现]]></title><link>https://blog.csdn.net/Levy_96/article/details/72771638</link><guid>https://blog.csdn.net/Levy_96/article/details/72771638</guid><author>Levy_96</author><pubDate>Fri, 26 May 2017 16:51:22 +0800</pubDate><description><![CDATA[抓取国家统计局区划、城乡划分代码的简易python爬虫实现免责声明本篇文章仅用于学习交流，并不针对任何网站、软件、个人。概要说明本篇文章介绍一个简易python爬虫的开发，对国家统计局区划、城乡规划代码进行抓取。 
所谓简易，一方面是因为是单线程爬虫，不涉及python的多进程、多线程编程，另一方面是因为不包括“URL管理器”的模块（负责存储已爬取、未爬取的url序列，控制爬虫不多爬、不漏爬），而是]]></description><category></category></item><item><title><![CDATA[CentOS7安装配置MySQL5.6]]></title><link>https://blog.csdn.net/Levy_96/article/details/72765545</link><guid>https://blog.csdn.net/Levy_96/article/details/72765545</guid><author>Levy_96</author><pubDate>Fri, 26 May 2017 12:59:35 +0800</pubDate><description><![CDATA[CentOS7安装配置MySQL5.6]]></description><category></category></item><item><title><![CDATA[CentOS7编译安装Nginx]]></title><link>https://blog.csdn.net/Levy_96/article/details/72765534</link><guid>https://blog.csdn.net/Levy_96/article/details/72765534</guid><author>Levy_96</author><pubDate>Fri, 26 May 2017 12:57:17 +0800</pubDate><description><![CDATA[CentOS7编译安装Nginx]]></description><category></category></item><item><title><![CDATA[CentOS7源码安装git最新版本]]></title><link>https://blog.csdn.net/Levy_96/article/details/71191713</link><guid>https://blog.csdn.net/Levy_96/article/details/71191713</guid><author>Levy_96</author><pubDate>Fri, 05 May 2017 10:20:21 +0800</pubDate><description><![CDATA[CentOS7源码安装git最新版本]]></description><category></category></item><item><title><![CDATA[maven项目pom.xml报错……was cached in the local repository的解决方法]]></title><link>https://blog.csdn.net/Levy_96/article/details/52795411</link><guid>https://blog.csdn.net/Levy_96/article/details/52795411</guid><author>Levy_96</author><pubDate>Wed, 12 Oct 2016 11:11:02 +0800</pubDate><description><![CDATA[今天在配置maven项目的时候，出现了pom.xml报错……was cached in the local repository的情况。
起因是我在第一次配置pom.xml之后，下载包的过程由于网络问题中断了，此时下载下来的包显然是不完整的，我干脆删除了整个项目，重新创建一个maven项目后，再去配置pom.xml，就出现了……was cached in the local repository]]></description><category></category></item><item><title><![CDATA[linux服务器下如何下载微信语音并转为mp3格式]]></title><link>https://blog.csdn.net/Levy_96/article/details/52658790</link><guid>https://blog.csdn.net/Levy_96/article/details/52658790</guid><author>Levy_96</author><pubDate>Sun, 25 Sep 2016 10:41:57 +0800</pubDate><description><![CDATA[注：以下操作均在centos6.5下进行

       在微信开发的过程中，有时候我们会接触到微信语音，这里需要解决两个问题：1. 如何从微信服务器上下载语音文件到我们的服务器上？2. 如何将语音文件的amr格式转化成H5页面可用的mp3格式？
       1. 查看微信JSSDK文档可以找到相关的多媒体下载API，这里我们需要用到的是上传多媒体API返回的多媒体id。
    //下]]></description><category></category></item><item><title><![CDATA[PHP关于金额数值的处理，number_format()与round()的使用]]></title><link>https://blog.csdn.net/Levy_96/article/details/52658463</link><guid>https://blog.csdn.net/Levy_96/article/details/52658463</guid><author>Levy_96</author><pubDate>Sun, 25 Sep 2016 09:45:12 +0800</pubDate><description><![CDATA[在开发过程中，我们经常需要处理一些金额数值，一般将其格式化为保留两位小数点。 在PHP中，有number_format(), round()这么两个函数可以使用。
       最直接的是round()这个函数，其作用是对浮点数进行四舍五入。
       round(x, prec), 第一个参数是需要进行四舍五入的数值，第二个参数是要保留的小数点位数，例如round(3.158, 2)的结]]></description><category></category></item></channel></rss>