class CC(): def aa(self): print('aa') def bb(self): print('bb') CC=CC() getattr(CC,'aa',)()
传参
class CC(): def aa(self,aa): print(aa) def bb(self): print('bb') getattr(CC(),'aa')('sssd')
标签:aa,调用,bb,python,self,CC,getattr,print From: https://www.cnblogs.com/Mr-Simple001/p/17158920.html