原英文帮助文档:

help([object])

Invoke the built-in help system. (This function is intended for interactive use.) If no argument is given, the interactive help system starts on the interpreter console. If the argument is a string, then the string is looked up as the name of a module, function, class, method, keyword, or documentation topic, and a help page is printed on the console. If the argument is any other kind of object, a help page on the object is generated.

This function is added to the built-in namespace by the site module.

Changed in version 3.4: Changes to pydoc and inspect mean that the reported signatures for callables are now more comprehensive and consistent.

————————(我是分割线)————————

中文解释

调用内置的帮助系统。(这个函数用于交互模式使用)

如果未给出参数,则交互帮助系统将在解释器控制台上启动。

示例:

>>>help

Type help()for interactive help, or help(object) forhelp about object.>>>help()

Welcome to Python3.7's help utility!

If thisisyour first time using Python, you should definitely check out

the tutorial on the Internet at https://docs.python.org/3.7/tutorial/.

Enter the name of any module, keyword,ortopic to get help on writing

Python programsand using Python modules. To quit this help utility and

return to the interpreter, just type "quit".

To get a list of available modules, keywords, symbols,ortopics, type"modules", "keywords", "symbols", or "topics". Each module also comes

with a one-line summary of what it does; to list the modules whose nameor summary contain a given string such as "spam", type "modules spam".

help>abs

Help on built-in function abs inmodule builtins:

abs(x,/)

Return the absolute value of the argument.

help>input

Help on built-in function input inmodule builtins:

input(prompt=None, /)

Read a stringfrom standard input. The trailing newline isstripped.

The prompt string,if given, isprinted to standard output without a

trailing newline before reading input.

If the user hits EOF (*nix: Ctrl-D, Windows: Ctrl-Z+Return), raiseEOFError.

On*nix systems, readline is used ifavailable.

help>input()

No Python documentation foundfor 'input()'.

Use help() to get the interactive help utility.

Use help(str)for help on the str class.

help>quit

You are now leaving helpandreturning to the Python interpreter.

If you want to askfor help on a particular object directly fromthe

interpreter, you can type"help(object)". Executing "help('string')"has the same effect as typing a particular string at the help>prompt.>>>

---退出帮助模式使用quit

如果参数是字符串,则该字符串将作为模块、函数、类、方法、关键字或文档主题的名称查找,并在控制台上打印帮助页。

>>> help("time")

Help on built-inmodule time:

NAME

time-This module provides various functions to manipulate time values.

DESCRIPTION

There are two standard representations of time. Oneisthe number

of seconds since the Epoch,inUTC (a.k.a. GMT). It may be an integerora floating point number (to represent fractions of seconds).

The Epochis system-defined; on Unix, it is generally January 1st, 1970.

The actual value can be retrieved by calling gmtime(0).

The other representationis a tuple of 9integers giving local time.

The tuple items are:

year (including century, e.g.1998)

month (1-12)

day (1-31)

hours (0-23)

minutes (0-59)

seconds (0-59)

weekday (0-6, Monday is0)

Julian day (dayin the year, 1-366)

DST (Daylight Savings Time) flag (-1, 0 or 1)

If the DST flagis 0, the time is given inthe regular time zone;if it is 1, the time is given inthe DST time zone;if it is -1, mktime() should guess based on the date andtime.

CLASSES

builtins.tuple(builtins.object)

struct_timeclassstruct_time(builtins.tuple)| struct_time(iterable=(), /)

.

.

.

.

.

.

如果参数是任何其他类型的对象,则会生成该对象的帮助页。

>>> a = "test"

>>>help(a)

Help on package test:

NAME

test- #Dummy file to make this directory a package.

PACKAGE CONTENTS__main___test_multiprocessing

ann_module

ann_module2

ann_module3

audiotests

autotest

bad_coding

bad_coding2

bad_getattr

bad_getattr2

bad_getattr3

badsyntax_3131

badsyntax_future10

badsyntax_future3

badsyntax_future4

badsyntax_future5

badsyntax_future6

badsyntax_future7

badsyntax_future8

badsyntax_future9

badsyntax_pep3120

bisect

bytecode_helper

.

.

.

.

.

.

>>> help("ls")

No Python documentation foundfor 'ls'.

Use help() to get the interactive help utility.

Use help(str)for help on the str class.

此函数由站点模块添加到内置命名空间中。

版本3.4中的更改:pydoc和inspect的更改意味着所报告的可调用签名现在更加全面和一致。

———————(我是分割线)————————

————————(我是分割线)————————

参考:

1. Python 3.7.2 documentation

备注:

初次编辑时间:2019年9月21日21:08:21

环境:Windows 7   / Python 3.7.2

python帮助系统函数_【Python】【基础知识】【内置函数】【help的使用方法】相关推荐

  1. python@内置帮助系统的使用@eval@repr@str@内置函数源代码查看

    文章目录 refs python命令行文档 python --help python help函数 进入帮助系统(简练的python文档系统) 查阅内置模块(函数/异常/对象) 内置类型 区分大小写 ...

  2. 十五. Python基础(15)--内置函数-1

    十五. Python基础(15)--内置函数-1 1 ● eval(), exec(), compile() 执行字符串数据类型的python代码 检测#import os 'import' in c ...

  3. python语言接收信息的内置函数_python接收信息的内置函数是

    有的python内置函数怎么就一个pass这个模块是用C实现的,没有Python源码. 所以python代码中只有一个pass,因为代码中都是C实现的. 两种情况: 一种情况是继承的时候会用到的,父类 ...

  4. VBS基础篇 - 内置函数

    VBS基础篇 - 内置函数 Date/Time 函数 函数 描述 CDate 把有效的日期和时间表达式转换为日期(Date)类型. Date 返回当前的系统日期. DateAdd 返回已添加指定时间间 ...

  5. python进入内置函数文件_python基础知识-set、函数、内置函数、文件操作

    一.set set集合,是一个无序且不重复的元素集合 1.创建 se = {"123","456"}print(type(se)) s= set() #创建空集 ...

  6. 【Python基础】Python 打基础一定要吃透这 5 个内置函数

    出品:Python数据之道 作者:Peter 编辑:Lemon 本文中介绍 Python 中 5 个高阶内置函数,它们不仅能够帮助我们了解 Python 的数据结构,同时也能加快数据处理的速度,体会到 ...

  7. 【Python基础】内置函数filter详解

    filter,顾名思义,就是一个过滤器.其作用是从列表(或其他序列类型)中筛选出满足条件的子列表,filter是python的内置函数,无须import即可直接使用. 1 filter的基础用法 对于 ...

  8. python中求包含5的数_Python 内置函数 ( ) 可以返回列表、元组、字典、集合、字符串以及 range 对象中元素个数。_学小易找答案...

    [简答题]实例1:求两数相除的结果. 先后输入2个数据,计算第一个数除以第二个数的结果. 要求能够处理输入数据为非数字.除数为零.文件末尾EndOfFile 和用户使用Ctrl + C 命令终止程序等 ...

  9. python 基础 学习 内置函数

    内置函数       例:如果返回数字的绝对值 ,写函数是非常不方便的 [root@zabbix tools]# python fa.py 10 [root@zabbix tools]# cat fa ...

  10. 自学python第四课——字符串运算符、字符串内置函数、字符串常用方法总结

    第四课 字符串 单.双.三引号 直接赋值和用 input 赋值: "+"号和"*"号在字符串中的使用 in 和 not in 字符串的格式化 r 保留原格式,即 ...

最新文章

  1. Internet History, Technology, and Security----第三周
  2. Linq多表查询条件批量删除
  3. golang sqlite数据库 rows.Close()造成 错误database is locked
  4. 《认清C++语言》---谈谈const
  5. html你可能还不知道的一些知识点
  6. 31.openssl编程——SSL实现
  7. Topcoder SRM 630div 2
  8. 酸了!第一名+第三名的学霸情侣,分别直博清华、人大…
  9. python logging模块 默认_python logging模块
  10. Python的三目表达式and简短语法
  11. linux安装ps软件教程,如何在Linux上安装Adobe Photoshop | MOS86
  12. eclipse设置背景色为豆沙绿
  13. go(goav) 中使用 ffmpeg 获取摄像头视频流,并转换成图片,发送给前端界面实时展示
  14. 阅读:IA-GCN: Interactive Graph Convolutional Network forRecommendation
  15. 微信公众号开发三 测试号申请
  16. 配置Apache Digest认证
  17. php cms下载地址,下载phpcms详细步骤
  18. emui华为java2p_同属华为,却是两个相对独立的系统,Magic系统和EMUI区别在哪?...
  19. Cobalt Strike上线微信机器人提醒
  20. linux中常用打开pdf文档指令软件

热门文章

  1. Android之最好理解的Binder机制
  2. Android插件化开发之动态加载基础之ClassLoader工作机制
  3. linux之less 命令
  4. python远程执行shell 防止注入脚本_解决 window 上python远程执行shell paramiko 下令 Permission denied...
  5. wpsppt流程图联系效果_风险隐患排查的手段—HAZOP 与检查表的区别及应用效果
  6. java23种设计模式个人整理_java23种设计模式-行为型模式之模板方法模式
  7. 土木工程到底有多惨?哭了哭了......
  8. 太牛了,原来古人是这样铸造钱币的。。。
  9. 每日一笑 | 老板,黑凤梨真的能吃吗?
  10. mysql in优化_MySQL 探秘: 1 整体架构