pip是自动化安装工具,首先安装pip
http://pypi.python.org/packages/source/p/pip/pip-1.0.tar.gz
下载下来后,解压,在cmd中进入这个文件夹,运行setup.py install
这样pip就安装完成
怎么安装其他模块呢,
在cmd中,运行pip install ***(模块名),这样,该模块就安装成功
转载:
爬虫程序:
import urllib.request
resp=urllib.request.urlopen('http://www.baidu.com')
html=resp.read()
print(html)
resp=urllib.request.urlopen('http://www.baidu.com')
html=resp.read()
print(html)

被折叠的 条评论
为什么被折叠?



