Python中的帮助功能
很多时候,我们需要查看python文档以获取有关功能,模块等方面的帮助。Python提供了一个帮助功能,可以为我们提供所需的结果。
语法
Help(‘term’) Where term is the word on which we want the help.
示例
在下面的示例中,我们寻求在时间一词上寻求帮助。输出来自python文档,并且非常详尽。
print(help('time'))输出结果
运行上面的代码给我们以下结果-
Help on built-in module time: NAME time - This module provides various functions to manipulate time values. DESCRIPTION There are two standard representations of time. One is the number of seconds since the Epoch, in UTC (a.k.a. GMT). It may be an integer or a floating point number (to represent fractions of seconds). The Epoch is system-defined; on Unix, it is generally January 1st, 1970. The actual value can be retrieved by calling gmtime(0). ……………………….
热门推荐
6 修祖屋祝福语简短
10 生日祝福语大全女生简短
11 离别简短的祝福语大全
12 姐姐女儿结婚祝福语简短
13 中秋祝福语送朋友简短
14 牛年除夕祝福语简短的
15 年末祝福语简短的文案
16 弟弟生日祝福语简短的话
17 理科元旦祝福语大全简短
18 早晨好正能量祝福语简短