Python内置了很多有用的函数,我们可以直接调用。
要调用一个函数,需要知道函数的名称和参数,比如求绝对值的函数abs
,只有一个参数。可以直接从Python的官方网站查看文档:
链接:点击打开链接
The Python interpreter has a number of functions built into it that are always available. They are listed here in alphabetical order.
Python内置了很多有用的函数,我们可以直接调用。
要调用一个函数,需要知道函数的名称和参数,比如求绝对值的函数abs
,只有一个参数。可以直接从Python的官方网站查看文档:
链接:点击打开链接
The Python interpreter has a number of functions built into it that are always available. They are listed here in alphabetical order.