unittest is the batteries-included test module in the Python standard library. ... import unittest def fun(x): return x + 1 class MyTest(unittest.
確定! 回上一頁