The python variable immutable objects and objects ordered and disordered

 

Immutable objects: numeric types int, float, string str, ancestral tuple, boole 

Variable Object: list list, a collection set, the dictionary dict

 

Order and disorder judgment: Can Index

Ordered objects: strings, tuples, lists

Unordered objects: dictionaries, collections

Guess you like

Origin www.cnblogs.com/Jokerguigui/p/11697196.html