在Python 中等价于:. bool(expr) is True. 这个和 assertTrue 的测试目的完全匹配。 因此该文档中已经指出 assertTrue 返回真值, assertFalse 返回假值。
確定! 回上一頁