摘要:
如果要使用classonlymethod ,则需要先定义好一个classonlymethod 类。 首先我们需要明白无论是classonlymethod还是classmethod,本质都是一个类,而classonlymethod继承了classmethod。 classonlymethodz作用:只 阅读全文
posted @ 2022-11-06 20:47
ty1539
阅读(143)
评论(0)
推荐(1)
摘要:
import unittest class MyTestCase(unittest.TestCase): def test_something(self): self.assertEqual(0, False) if __name__ == '__main__': unittest.main() 输 阅读全文
posted @ 2022-11-06 17:25
ty1539
阅读(48)
评论(0)
推荐(0)

浙公网安备 33010602011771号