当yield 后面带有返回值的时候,返回值就会带入到函数中去) 看看下面的例子在pytest中,是这样的conftest.py @pytest.fixture() def func1(): a=1 ...
確定! 回上一頁