Python help()函数用法详解
2015-03-08 14:07
1081 查看
很多常用的python函数或模块,经常需要查看帮助,很不方便。
在python的交互命令行下使用help()或在python文件中调用help()函数可以很方便的查看帮助。
一 查看所有的关键字:help("keywords")
二 其他
查看python所有的modules:help("modules")
单看python所有的modules中包含指定字符串的modules: help("modules yourstr")
查看python中常见的topics: help("topics")
查看python标准库中的module:import os.path + help("os.path")
查看python内置的类型:help("list")
查看python类型的成员方法:help("str.find")
查看python内置函数:help("open")
在python的交互命令行下使用help()或在python文件中调用help()函数可以很方便的查看帮助。
一 查看所有的关键字:help("keywords")
二 其他
查看python所有的modules:help("modules")
单看python所有的modules中包含指定字符串的modules: help("modules yourstr")
查看python中常见的topics: help("topics")
查看python标准库中的module:import os.path + help("os.path")
查看python内置的类型:help("list")
查看python类型的成员方法:help("str.find")
查看python内置函数:help("open")
相关文章推荐
- Python help()函数用法详解
- Python help()函数用法详解
- Python help()函数用法详解
- Python基础之函数用法实例详解
- Python3.2中Print函数用法实例详解
- Python中.join()和os.path.join()两个函数的用法详解
- Python中scatter函数参数及用法详解
- 基于Python中求和函数sum的用法详解
- 详解Python中的join()函数的用法(字符串和os.path)
- Python3.2中Print函数用法实例详解
- 详解Python中的join()函数的用法
- 详解Python中open()函数指定文件打开方式的用法
- Python中 map()函数的用法详解
- 详解Python中的join()函数的用法
- 详解Python中where()函数的用法
- 详解Python中的join()函数的用法
- Python中flatten( )函数及函数用法详解
- Python3正则匹配re.split,re.finditer及re.findall函数用法详解
- 详解Python map函数及Python map()函数的用法
- 详解Python中的join()函数的用法(字符串和os.path)