• 技术文章 >常见问题 >Python常见问题

    python如何查找在线帮助?

    yangyang2020-05-08 10:57:56原创1961

    在使用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视频教程栏目。

    专题推荐:python
    品易云
    上一篇:python如何查看所有变量 下一篇:python如何保留指定小数点位数?

    相关文章推荐

    • python如何进入编辑模式?• 如何运行atom中的python程序?• 如何在python内导入文件?

    全部评论我要评论

    © 2021 Python学习网 苏ICP备2021003149号-1

  • 取消发布评论
  • 

    Python学习网