您的位置:首页 > 移动开发 > Objective-C

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

2014-12-28 10:44 330 查看
本函数是调用内部的帮助系统,主要使用在交互模式下的查看函数或对象使用文档。
例子:

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 深圳
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: