摘要:
class Foo: passf=Foo()print(type(f1)) #f1是通过Foo类实例化的对象print(type(Foo)) #Foo是通过type类实例化的对象print(' >')class Foo1: x=1 def __init__(self,name,age): self. 阅读全文
posted @ 2020-05-20 01:50
秋雨的蝴蝶
阅读(151)
评论(0)
推荐(0)
摘要:
#第一种方式:# class Foo:# @property# def AAA(self):# print("get")## @AAA.setter# def AAA(self,value):# print('set',value)## @AAA.deleter# def AAA(self):# p 阅读全文
posted @ 2020-05-20 01:25
秋雨的蝴蝶
阅读(166)
评论(0)
推荐(0)
浙公网安备 33010602011771号