A digital
int (..)
two string
replace / find / join / strip / startswith / split / upper / lower / format
= tempalte " I AM {name}, Age: Age {} "
V = tempalte.format (name = ' Alex ' , Age =. 19 )
Print (V)
V = tempalte.format (** { " name " : ' Alex ' , ' Age ' :. 19 })
Print (V)
I AM Alex, Age: . 19
I AM Alex, Age: . 19 # plus two does not affect the result **
Third, the list
append, extend, insert
indexing, slicing, cycle
four-tuple
is ignored: the list can be seen as a special form of
indexing, slicing, circulation, and the elements can not be modified
V. dictionary
get / update / keys / values / items
for, index
DIC = {
" K1 " : ' V1 '
}
V = " K1 " in DIC
Print (V) # Note; the dictionary using the key In the operation returns to the non-value
True
V = " V1 " in DIC
Print (V)
False
v = " v1 " in dic.values ()
Print (v)
True
Sixth, the Boolean value
0. 1
BOOL (...)
appears where False: None "" () [] {} 0 ==> False