pip3 install beautifulsoup4
如果使用国外的源下载速度慢,我们可以使用国内的源进行提速:
- 豆瓣源
pip3 install beautifulsoup4 -i https://pypi.douban.com/simple
- 清华大学源
pip3 install beautifulsoup4 -i https://pypi.tuna.tsinghua.edu.cn/simple
pip3 install beautifulsoup4
如果使用国外的源下载速度慢,我们可以使用国内的源进行提速:
pip3 install beautifulsoup4 -i https://pypi.douban.com/simple
pip3 install beautifulsoup4 -i https://pypi.tuna.tsinghua.edu.cn/simple
1.while循環的格式 while 條件: 條件滿足時,做的事情1 條件滿足時,做的事情2 條件滿足時,做的事情3 ...(省略)... demo