码迷,mamicode.com
首页 > 编程语言 > 详细

python_查找模块的方法

时间:2017-01-12 20:45:06      阅读:216      评论:0      收藏:0      [点我收藏+]

标签:bsp   import   函数名   查找   png   blog   示例   src   alt   

在python自带的Command Line中:

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

import 模块名

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

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

import 模块名

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

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

 

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

技术分享

 

python_查找模块的方法

标签:bsp   import   函数名   查找   png   blog   示例   src   alt   

原文地址:http://www.cnblogs.com/zhuhaiying/p/6279597.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!