python查找在线帮助的方法

这篇文章主要介绍python查找在线帮助的方法,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

在使用python时需要查一些简单命令的含义以及用法,直接help(命令)就行了。

示例:

>>>help(input)
    Help on built-in function input in module builtins:
    input(prompt=None, /)
        Read a string from standard input.  The trailing newline is stripped.
    The prompt string, if given, is printed to standard output without a
    trailing newline before reading input.
    If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raise EOFError.
    On *nix systems, readline is used if available.

以上是python查找在线帮助的方法的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注行业资讯频道!