函数和方法

由对象调用的是方法

1 FunctionType
2 
3 MethodType
4 
5 isinstance(func,FunctionType)  true
6 isinstance(obj.func,MethodType)  true

 

posted @ 2017-12-18 20:06  xiesibo  阅读(103)  评论(0编辑  收藏  举报