整理在python学习中一些有用的插件

作为一个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

猜你喜欢

转载自blog.csdn.net/wilymore/article/details/81179242