官方文档:https://docs.pytest.org/en/latest/contents.html#toc 安装 pip install pytest pip install -U pytest #更新 pycharm中设置pytest解释器 windows - File - Settings - Python Integrated Tools