摘要:
#反射最常用的两个方法:hasattr getattr # 1. 反射对象属性,反射对象方法: class Goods: def __init__(self,name): self.name = name def price(self): print('{}的价格是8元'.format(self.name)) apple = Goods('appl... 阅读全文
posted @ 2019-07-24 16:36
梁劲雄
阅读(145)
评论(0)
推荐(0)

浙公网安备 33010602011771号