python查看帮助文档:help(命令)

  有时需要查一些简单命令的含义以及用法,直接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)