assertRaises (ZeroDivisionError, myFun, 20,0) if __name__ == '__main__': unittest.main() ... 我們用python舉幾個unitTest的用法,介紹Assertion.
確定! 回上一頁