Recently prepared to learn python, to recharge their own charge, these are I tidy up some of the basic knowledge of Python, will continue to update, and I hope to communicate with you
First, built-in functions
CMP (OBJ1,OBJ2)
Repr (obj) #返回一个对象的字符串表示 is actually equivalent to "
STR (obj) #同上
Type (obj) #返回对象的相应类型
X**y and POW (x, y) all represent the Y-times of X
Ii. Types of factory functions
Int () long () float ()Complex ()
STR () Unicode () basestring ()list ()
Tuple ()
Three, A storage type
(1) Atomic/scalar storage: Can hold a single Literal object type (numeric string)
(2) Container storage: Accommodates multiple object types (list, typle, directory)
B Update type
In fact, a new object was created and replaced the old object
Variable object list, dictionary
Immutable object numbers, strings, tuples
C Access model
Direct Access to all numeric types
Sequential String list tuple
Map Hash Key-value pair
Here the types can be summarized as follows:
This is what I have just summed up, in the future I will continue to write, and hope to communicate with you.
Python Knowledge points Summary of the SUM function