在使用python时需要查一些简单命令的含义以及用法,直接help(命令)就行了。
示例:
>>><a href="https://www.gaodaima.com/tag/help" title="查看更多关于help的文章" target="_blank">help</a>(<a href="https://www.gaodaima.com/tag/input" title="查看更多关于input的文章" target="_blank">input</a>) 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.
www#gaodaima.com来源gao!%daima.com搞$代*!码$网搞代码
更多Python知识请关注云海天Python教程栏目。
来源:搞代码网:原文地址:https://www.gaodaima.com