python-function call

function call

There are many useful functions built into python, you can use help(function_name) in the interactive command line interface to get help information.

data type conversion

Python has some built-in type conversion functions such as int() to convert other types to integers

A function name is actually a reference to a function object. It is completely possible to assign a function name to a variable, which is equivalent to giving the function an alias.

a = abs()
a(-12)

it works

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325503871&siteId=291194637