Home>Article>Backend Development> What are python built-in functions?

What are python built-in functions?

silencement
silencement Original
2019-05-22 18:27:22 7476browse

Python built-in functions refer to the functions that come with python. Such functions do not need to be defined, and different built-in functions have different functions and can be used directly. Python general built-in functions: id() function, help() function, type() function, dir() function, isinstance() function, ord() function, etc.

What are python built-in functions?

Python general built-in function:

id() function: View the memory address of the object

help() function : View help information

type() function: View the type of object; it will not consider the subclass to be a parent class type

isinstance() function: View the object type; it will consider the subclass It is a parent class type

dir() function: View the properties, methods, etc. in the object

ord(): Get the numerical code corresponding to a character

chr (): To realize the conversion from numeric encoding to character

Built-in function of number type:

What are python built-in functions?

## Random number function:

What are python built-in functions?

The above is the detailed content of What are python built-in functions?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn