1. 首页
  2. 数据库
  3. 其它
  4. Python实现使用dir获取类的方法列表

Python实现使用dir获取类的方法列表

上传者: 2020-12-31 19:19:54上传 PDF文件 33KB 热度 18次
使用Python的内置方法dir,可以范围一个模块中定义的名字的列表。 官方解释是: Docstring: dir([object]) -> list of strings If called without an argument, return the names in the current scope. Else, return an alphabetized list of names comprising (some of) the attributes of the given object, and of attributes reachable from it. If th
下载地址
用户评论