会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
红领巾下的大刀疤
             Only you become stronger, to protect the people I want to protect...
博客园
首页
新随笔
联系
订阅
管理
2017年4月24日
Python getattr
摘要: getattr()函数是Python自省的核心函数,具体使用大体如下: 获取对象引用getattrGetattr用于返回一个对象属性,或者方法 Python代码 class A: def __init__(self): self.a = 'a' def method(self): print "me
阅读全文
posted @ 2017-04-24 15:26 红领巾下的大刀疤
阅读(363)
评论(0)
推荐(0)
公告
/* 看板娘 */