python_查找模块的方法

在python自带的Command Line中:

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

import 模块名

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

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

import 模块名

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

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

 

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

 

posted @ 2017-01-12 19:56  坏脾气  阅读(834)  评论(0编辑  收藏  举报