摘要: import Triangle import unittest class TestTriangle(unittest.TestCase): @classmethod def setUpClass(cls): print("\nsetUpClass..........测试前置操作 \n") @cla 阅读全文
posted @ 2022-04-16 17:29 AubeLiang 阅读(44) 评论(0) 推荐(0) 编辑
摘要: import math class Triangle: REL_TOL = 1e-9 def __new__(cls, *args, **kwargs): if cls.is_triangle(*args): instance = super().__new__(cls) return instan 阅读全文
posted @ 2022-04-16 14:38 AubeLiang 阅读(52) 评论(0) 推荐(0) 编辑