首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > perl python >

哪位大神总结一下help的用法?解决方案

2012-04-10 
哪位大神总结一下help的用法?哪位大神总结一下help的用法,告诉我怎么查询模块,工厂函数,方法的具体用法,比

哪位大神总结一下help的用法?
哪位大神总结一下help的用法,告诉我怎么查询模块,工厂函数,方法的具体用法,比如说可以看到参数,及参数的意义。

[解决办法]

Python code
>>> help(open)Help on built-in function open in module __builtin__:open(...)    open(name[, mode[, buffering]]) -> file object        Open a file using the file() type, returns a file object.  This is the    preferred way to open a file.  See file.__doc__ for further information.>>> help(os)Help on module os:[About 1242 more lines. Double-click to unfold]>>> a = "a string">>> help(a)no Python documentation found for 'a string'>>> help(a.endswith)Help on built-in function endswith:endswith(...)    S.endswith(suffix[, start[, end]]) -> bool        Return True if S ends with the specified suffix, False otherwise.    With optional start, test S beginning at that position.    With optional end, stop comparing S at that position.    suffix can also be a tuple of strings to try.
[解决办法]
安装目录doc目录下。。。。。。

热点排行