![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Python
M10F
大数据进阶记
展开
-
Python安装插件时报错:Traceback (most recent call last):AttributeError: module 'pip' has no attribute 'main'
安装插件beautifulsoup4时遇到如下问题:Traceback (most recent call last):File “D:\soft\PyCharm 2017.3.3\helpers\packaging_tool.py”, line 192, in mainretcode = do_install(pkgs)File “D:\soft\PyCharm 2017.3.3\hel...原创 2019-06-20 21:29:37 · 5736 阅读 · 1 评论 -
国内pip源
阿里云http://mirrors.aliyun.com/pypi/simple/中国科技大学https://pypi.mirrors.ustc.edu.cn/simple/豆瓣(douban)http://pypi.douban.com/simple/清华大学https://pypi.tuna.tsinghua.edu.cn/simple/中国科学技术大学http://py...原创 2019-06-20 21:31:13 · 128 阅读 · 0 评论 -
python爬虫学习-实现翻译软件
from urllib.request import urlopen as urfrom bs4 import BeautifulSoup as bfsimport requestsdef getResult(keyword):#发起请求 url = "https://cn.bing.com/dict/search?q=" + keyword#获取源码 conte...原创 2019-06-21 22:22:01 · 180 阅读 · 0 评论 -
Python爬虫学习-----豆瓣top250(Xpath解析)
解析数据利用的是xpath处理数据利用jsonfrom urllib.request import urlopen as urfrom lxml import etree as etimport timeimport jsonlast_no=[]last_img=[]last_title_cn=[]last_title_en=[]last_other=[]last_body...原创 2019-06-24 23:00:33 · 436 阅读 · 0 评论