
【Python】错误
天涯孤狼x
这个作者很懒,什么都没留下…
展开
-
Python 出现 cannot use a string pattern on a bytes-like object
# coding=utf-8 import urllib.request import re url = 'http://www.163.com' file = 'd:/test.html' data = urllib.request.urlopen(url).read() r1 = re.compile('') c_t = r1.findall(data) print(c_t) 发现读取下来后原创 2018-01-15 17:41:58 · 7909 阅读 · 0 评论 -
ImportError: 没有模块命名BS4
Just tagging onto Balthazar's answer. Running pip install BeautifulSoup4 did not work for me. Instead use pip install beautifulsoup4 详情原创 2018-01-15 18:18:55 · 580 阅读 · 0 评论