哪位大神总结一下help的用法?

zimingtjb 2012-02-23 09:01:43
哪位大神总结一下help的用法,告诉我怎么查询模块,工厂函数,方法的具体用法,比如说可以看到参数,及参数的意义。
...全文
55 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
I_NBFA 2012-02-24
  • 打赏
  • 举报
回复
安装目录doc目录下。。。。。。
zimingtjb 2012-02-23
  • 打赏
  • 举报
回复
那个,自带文档在哪啊?
[Quote=引用 2 楼 i_nbfa 的回复:]

看看自带文档吧,这个东西很直白真没啥好总结的。
[/Quote]
I_NBFA 2012-02-23
  • 打赏
  • 举报
回复
看看自带文档吧,这个东西很直白真没啥好总结的。
panghuhu250 2012-02-23
  • 打赏
  • 举报
回复

>>> 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.

37,719

社区成员

发帖
与我相关
我的任务
社区描述
JavaScript,VBScript,AngleScript,ActionScript,Shell,Perl,Ruby,Lua,Tcl,Scala,MaxScript 等脚本语言交流。
社区管理员
  • 脚本语言(Perl/Python)社区
  • IT.BOB
加入社区
  • 近7日
  • 近30日
  • 至今

试试用AI创作助手写篇文章吧