摘要:
html=""" #注意,第一次写,缩进了一点点,python对格式十分注重。。<html><head><title>the dormouse's story</title></head><body><p class="title" name="dromouse"><b>the dormouse's 阅读全文
Windows下使用BeautifulSoup 出现You are trying to run the Python 2 version of Beautiful Soup under Python3
摘要:
1.将下载的bs4文件夹 和2to3.py(在python--tools--scrips文件夹下) 复制到python--lib文件夹下。 2.打开cmd, g: cd python cd lib(目的是进入python 的lib文件夹里) 输入: python 2to3.py bs4 -w 阅读全文