help(object)
object
- строка с именем объекта или объект языка Python.Функция help()
вызывает встроенную справочную систему. Эта функция предназначена для интерактивного использования.
Внимание:
Если в описании запрошенного объекта, в списке параметров появляется косая черта /
, то это означает, что параметры до косой черты являются только позиционными.
>>> help() Welcome to Python 3.7.4 help utility. If this is your first time using Python, you should definitely check out the tutorial on the Internet at https://docs.python.org/3.7.4/tutorial/. Enter the name of any module, keyword, or topic to get help on writing Python programs and using Python modules. To quit this help utility and return to the interpreter, just type "quit". To get a list of available modules, keywords, symbols, or topics, type "modules", "keywords", "symbols", or "topics". Each module also comes with a one-line summary of what it does; to list the modules whose name or summary contain a given string such as "spam", type "modules spam". help>
>>> help(hash) Help on built-in function hash in module builtins: hash(obj, /) Return the hash value for the given object. Two objects that compare equal must also have the same hash value, but the reverse is not necessarily true. (END)
>>> help(1) Help on int object: class int(object) | int(x=0) -> integer | int(x, base=10) -> integer | | Convert a number or string to an integer, or return 0 if no arguments | are given. If x is a number, return x.__int__(). For floating point | numbers, this truncates towards zero. | | If x is not a number or if base is given, then x must be a string, | bytes, or bytearray instance representing an integer literal in the | given base. The literal can be preceded by '+' or '-' and be surrounded | by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. | Base 0 means to interpret the base from the string as an integer literal. | >>> int('0b100', base=0) | 4 ... ... ...