
上QQ阅读APP看书,第一时间看更新
The help() function
While getting started, it is going to be difficult to remember the syntax of every function in Python. It is possible to refer to a function's documentation and syntax using the help function in Python. For example, in order to find the use of the print function in Python, we can call help on the command-line terminal or the interactive shell as follows:
help(print)
This would return a detailed description of the function and its syntax:
