学习笔记(11):Python 面试100讲(基于Python3.x)-判断调用的是函数还是方法

立即学习:https://edu.csdn.net/course/play/26755/340162?utm_source=blogtoedu

通过 Isinstancep函数可以判断调用的是函数还是方法,如果是函数,类型是Function Type,如果是方法,类型是 Methodtype。

发布了17 篇原创文章 · 获赞 0 · 访问量 178

猜你喜欢

转载自blog.csdn.net/weixin_43745945/article/details/104197081
今日推荐