摘要:
from types import MethodType,FunctionType def check(arg): """ 检查arg是方法还是函数? :param arg: :return: """ # if isinstance(arg,MethodType): # print('arg是一个方法') # elif is... 阅读全文
摘要:
三、反射方法在面向对象中的应用 简单事例: 用反射方法完成简单的登陆、退出、注销功能: 阅读全文