Python eight kinds of classic collection of data structures
編輯:Python
8 classical data structures commonly used in Python
Pythn native data structures: Tuple(), List(), Set(), Dictionary{A:B}
Data structures in the NumPy package: array Ndarray (with multiple operations), matrix Matrix (multiple linear algebra calculations)
Data structures in the Pandas package: Series (index + 1 column of data), DataFrame (index + multi-column data table)
3 Set
3.1 Creating a Collection
Collection creation.There are no repeated elements, {}, if the elements are numbers, they are sorted by size; use the set() function to create a set, which will automatically split a string consisting of multiple letters