mypy and virtualenv

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

Guess you like

Origin www.cnblogs.com/friedCoder/p/12721115.html