摘要: 利用 --user 参数,即 pip install --user package_name 这样会将Python 程序包安装到 $HOME/.local 路径下,其中包含三个字文件夹:bin,lib 和 share。 然后修改 .bash_profile 文件使得 $HOME/.local/bin 阅读全文
posted @ 2019-09-08 17:54 i舒 阅读(13696) 评论(0) 推荐(0) 编辑
摘要: 例子: 参考:https://blog.csdn.net/pittpakk/article/details/81218566 Python3中urllib合并了Python2中的urllib和urllib2. 比如urllib2.Request和urllib2.urlopen 在python3中对应 阅读全文
posted @ 2019-09-08 17:52 i舒 阅读(1212) 评论(0) 推荐(0) 编辑
摘要: Python:tesserocr 在 windows 下的安装及简单使用 tesserocr 是 python 的一个 OCR 库,它是对 tesseract 做的一层 Python API 封装,所以他的核心是tesseract。 使用 阅读全文
posted @ 2019-09-08 17:25 i舒 阅读(675) 评论(0) 推荐(0) 编辑
摘要: 使用BS4解析XML文件用法安装:pip3 install lxml Beautifulsoup4 python-jenkins1. html.parserfrom bs4 import BeautifulSoupsoup = BeautifulSoup(html, "html.parser")两个 阅读全文
posted @ 2019-09-08 17:18 i舒 阅读(2202) 评论(0) 推荐(0) 编辑