Python标准库:内置函数help([object])
2023-09-14 09:10:34 时间
本函数是调用内部的帮助系统,主要使用在交互模式下的查看函数或对象使用文档。
例子:
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常用标准库函数
- python标准库和第三方库的区别
- Python 标准输出 sys.stdout 重定向(转)
- Python图形用户界面Tkinter标准色彩颜色背景色大全
- 100天精通Python(基础篇)——第30天:标准库random函数大全
- 熬了半宿!我把 Python 的 200个标准库整理出来了
- Python学习笔记18:标准库之多进程(multiprocessing包)
- Python标准库:内置函数delattr(object, name)
- Python标准库:内置函数any(iterable)
- Python标准库:内置函数dict(**kwarg)
- Python标准库:内置函数bin(x)
- Python标准库:内置函数enumerate(iterable, start=0)
- Python标准库:内置函数getattr(object, name[, default])
- Python标准库:内置函数object()
- Python标准库:内置函数iter(object[, sentinel])
- Python标准库:内置函数map(function, iterable, ...)
- Python标准库:内置函数pow(x, y[, z])
- Python标准库:内置函数range(stop) range(start, stop[, step])
- Python标准库:内置函数set([iterable])
- Python标准库:内置函数slice(stop) slice(start, stop[, step])
- Python标准库:内置函数staticmethod(function)
- Python标准库:内置函数zip(*iterables)
- Python标准库:内置函数__import__(name, globals=None, locals=None, fromlist=(), level=0)