摘要: import abc class Foo(metaclass=abc.ABCMeta): def f1(self): print(123) @abc.abstractmethod def f2(self):pass class Bar(Foo): def f2(self): print(666) o 阅读全文
posted @ 2022-07-18 23:56 ty1539 阅读(18) 评论(0) 推荐(0) 编辑
摘要: #_*_ encoding: utf-8 _*_ @author: ty hery 2019/7/17 import sys import inspect class testsqawd(object): def hello(self): print('the name of method is # 阅读全文
posted @ 2022-07-18 23:31 ty1539 阅读(21) 评论(0) 推荐(0) 编辑