Python 安装
1 、据说python 3 配套还没那么全。所以选用Python2:
<1>Download address: https://www.python.org/ftp/python/2.7.6/python-2.7.6.msi
双击安装,例如我安装到D盘的:D:\Python27。
<2>需要用到xlrd库(该库注意提供操作excel的Python API), Download address: https://pypi.python.org/packages/source/x/xlrd/xlrd-0.9.3.tar.gz#md5=6f3325132f246594988171bc72e1a385
安装命令:python setup.py install
小小的测试了一把:
双击:Python (command line);
>>>print "helloworld" helloworld >>>
PC上的.py文件可以直接双击运行,也可以去命令行执行。
python -m pip install --upgrade pip
pip install beautifulsoup4 lxml

浙公网安备 33010602011771号