Python's built-in types introduced
In Python, data in the form of the object
is nothing more than part of the memory objects in the collection include a number and related operations
Python script everything is an object
in order to make the object more clearly, need to determine the type of object
Python provides a powerful object as part of the type of language, i.e., built-in type
- Built-in objects make the program easier to write
- Built-in objects so that the assembly can be extended
- Built-in objects more often than custom data structures more efficient
- Built-in objects is part of the language standard
How to get the type of object
type( )
isinstance( )
Digital Type
Python common numeric types are: integer, float, boolean, and so
int length Python3 is not specified, but Python2 is divided into integer and long integers, the integer value Python3 size depends on the virtual computer memory size.
Integer
Float
e scientific notation
Boolean and numeric types
String type
Type Conversion