
作(zuo)为一个100%的记录小白,还是学习有必要(yao)记录一下,就当有利于自己的插件成长吧
关于插件(jian)的安装(zhuang),虽然很多插件我都不知道干嘛的记录,还是学习先记录一下

很多python插件会有环境依赖

比如 NetFramework 4.5以上

安装selenium
python -m pip install selenium
安装 matplotlib (二维绘图)
python -m pip install -U pip
python -m pip install -U matplotlib
安装Python-client
pip install Appium-Python-Client
安装 tqdm
pip install tqdm
升级pip
python -m pip install --upgrade pip
安装Excel插件
python -m pip install xlwt ( 写 )
python -m pip install xlrd (读)
numpy
pip install numpy
jieba 中文分词工具
pip install jieba
pandas
pip install pandas
pip install wordcloud
jupyter
pip install jupyter
使用jupyter的方法:
dos窗口 jupyter notebook
jupyter-notebook password
pymongo
pip install pymongo
nosetest
pip install nose
pytest测试框架
pip install -U pytest
pytest 用例规则:
测试文件以(yi) test_开头(以 _test 结(jie)尾也(ye)可以)
测试类(lei)以Test开头,并且不能带有 init 方法
测试(shi)函数以 test_ 开头
断言使用 assert
使用示例:
如 test_one.py 文件:
def func(x):
return x +1
def test_one():
assert func(3) == 5
在(zai)该文件目录,插件运行 py.test -q test_one.py
记录文章转自(zi):黎青松SEO博客
记录来源地址:http://www.alitaohuo.com/SEObaike/gongjuruanjian/2023.html
记录友情链接: 海口帝西网络科技有限公司佛山界汇网络科技有限公司沧州士正网络科技有限公司通州领霖网络科技有限公司当阳运诗网络科技有限公司南雄罗百网络科技有限公司高州光源网络科技有限公司 博利达防水芜湖广业网络科技有限公司上海伯虎信息科技发展有限公司
© 2013-2025.Company name All rights reserved.网站地图 邯郸市拓航金属制品制造有限公司-More Templates