摘要: 判断一个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 阅读全文
posted @ 2011-06-24 10:35 john2000 阅读(365) 评论(0) 推荐(0) 编辑