easy_install安装: 1 easy_install coverage 运行: 1 coverage run test.py 2 coverage report 转载于:https://www.cnblogs.com/yuan1991/p/python_coverage.html