品易云推流 关闭
文章详情页
文章 > Python常见问题 > python如何查找在线帮助?

python如何查找在线帮助?

头像

yang

2020-05-08 10:57:562908浏览 · 0收藏 · 0评论

在使用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知识请关注Python视频教程栏目。

关注

关注公众号,随时随地在线学习

本教程部分素材来源于网络,版权问题联系站长!

底部广告图