当前位置:首页 >  站长 >  编程技术 >  正文

记录在python学习中一些有用的插件

 2020-10-23 16:16  来源: 黎青松SEO博客   我来投稿 撤稿纠错

  【推荐】海外独服/站群服务器/高防

作为一个100%的小白,还是有必要记录一下,就当有利于自己的成长吧

关于插件的安装,虽然很多插件我都不知道干嘛的,还是先记录一下

很多python插件会有环境依赖

比如 NetFramework 4.5以上

wordcloud(云词)依赖 visual C++ 14.0

安装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 token:

jupyter-notebook password

pymongo

pip install pymongo

nosetest

pip install nose

pytest测试框架

pip install -U pytest

pytest 用例规则:

测试文件以 test_开头(以 _test 结尾也可以)

测试类以Test开头,并且不能带有 init 方法

测试函数以 test_ 开头

断言使用 assert

使用示例:

如 test_one.py 文件:

def func(x):

return x +1

def test_one():

assert func(3) == 5

在该文件目录,运行 py.test -q test_one.py

文章转自:黎青松SEO博客

来源地址:http://www.alitaohuo.com/SEObaike/gongjuruanjian/2023.html

申请创业报道,分享创业好点子。点击此处,共同探讨创业新机遇!

相关文章

热门排行

信息推荐