摘要:
# l=list([])# print(type(l)is list)# print(isinstance(l,list))'''True'''# class Foo:# pass# class Bar(Foo):# pass## print(issubclass(Bar,Foo))'''True' 阅读全文
摘要:
# import settings# class MySQL:# def __init__(self,host,port):# self.host=host# self.port=port## @classmethod# def from_conf(cls):# return cls(setting 阅读全文