mypy
- Static type checking can help the coder find bugs caused by type errors before running (compilation)
- When the development project is getting bigger and bigger, there is no need to read more code to determine whether a method you want to modify will affect the operation of other code
How to use: (first install)mypy xx.py
Type: https://docs.python.org/zh-cn/3/library/typing.html
mypy: https://www.caktusgroup.com/blog/2017/02/22/python-type-annotations/
virtualenv
virtualenv can manage multiple different python environments
- virtualenv is a software tool used to create virtual environments ( https://blog.csdn.net/qq_41250801/article/details/83832482 )
- The virtualenvwrapper software package allows us to manage the virtual environment more conveniently ( https://www.jianshu.com/p/7ed2dfa86e90)