pip install pytest. 简单上手,创建个test_sample.py文件. def func(x): return x + 1 def test_answer(): assert func(3) == 5.
確定! 回上一頁