首页 > 编程语言 > 详细

Python标准库:内置函数help([object])

时间:2014-12-28 11:43:18      阅读:201      评论:0      收藏:0      [点我收藏+]

本函数是调用内部的帮助系统,主要使用在交互模式下的查看函数或对象使用文档。

例子:

print(help(‘print‘))

结果输出如下:

Help on built-in function print in module builtins:

 

print(...)

    print(value, ..., sep=‘ ‘, end=‘\n‘, file=sys.stdout, flush=False)

    

    Prints the values to a stream, or to sys.stdout by default.

    Optional keyword arguments:

    file:  a file-like object (stream); defaults to the current sys.stdout.

    sep:   string inserted between values, default a space.

    end:   string appended after the last value, default a newline.

    flush: whether to forcibly flush the stream.





蔡军生  QQ:9073204  深圳

Python标准库:内置函数help([object])

原文:http://blog.csdn.net/caimouse/article/details/42212193

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!