摘要: 内置函数 isinstance 反射 一、反射:通过字符串来操作类与对象的属性,这种操作称之为反射!以下这是个函数是专门用来操作类与对象的属性。 1 """ 2 class People: 3 country='China' 4 def __init__(self,name): 5 self.nam 阅读全文
posted @ 2018-04-17 17:04 yangweiwe 阅读(159) 评论(0) 推荐(0)