摘要: 标准库operator中methodcaller方法 methodcaller方法是直接执行对象c中的fun函数 返回值是None getattr() getattr()方法相当于将对象c中的fun函数地址赋值给f 返回值是一个地址 locals(),globals()和eval()也可以实现,这里 阅读全文
posted @ 2019-05-11 10:47 LuoSpider 阅读(1010) 评论(0) 推荐(0) 编辑