摘要:
import Triangle import unittest class TestTriangle(unittest.TestCase): @classmethod def setUpClass(cls): print("\nsetUpClass..........测试前置操作 \n") @cla 阅读全文
摘要:
import math class Triangle: REL_TOL = 1e-9 def __new__(cls, *args, **kwargs): if cls.is_triangle(*args): instance = super().__new__(cls) return instan 阅读全文