摘要:
判断一个callable对象是否是函数>>> import os>>> import types>>> >>> for item in dir(os): if isinstance(eval('.'.join(['os', item])), types.FunctionType): print item _execvpe_exists_get_exports_list_make_stat_result_make_statvfs_result_pickle_stat_result_pickle 阅读全文