TypeError: div() takes 2 positional arguments but 3 were given

報錯前: class Test_Div(): def div(a, b): return a / b def test_tree(self): assert self.div(4,1) ==4 if __name__ == '__main__': pytest.main("s", "Test_Div.py") 報錯信息: 修改後: class Tes
相關文章
相關標籤/搜索