zhuhaiying

在python自带的Command Line中:

1. 查找一个模块拥有的方法

import 模块名

help(模块名) or dir(模块名)

2. 查找一个模块拥有的方法

import 模块名

help(模块名.函数名) or dir(模块名.函数名)

help(模块名.类名.函数名) or dir(模块名.类名.函数名)

 

示例:查找一个模块拥有的方法(os.path.isfile)

 

分类:

技术点:

相关文章:

  • 2021-07-11
  • 2021-09-14
  • 2021-08-16
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2021-06-25
  • 2022-02-08
猜你喜欢
  • 2022-01-08
  • 2021-09-14
  • 2021-11-27
  • 2022-12-23
  • 2021-04-06
  • 2021-09-23
相关资源
相似解决方案