Home > database >  python
python

Time:10-25


Python set similar to other languages, is not to repeat elements an unordered set, the basic functions including the relationship between testing and eliminating repetitive elements. Collection objects also supports the union (union), intersection computes (pay), difference (difference) and sysmmetric difference (such as symmetric difference set) mathematical operations.

Sets to support the x in the set, len (set), and for the x in the set, as an unordered collection of sets do not record element position or the insertion point, therefore, sets does not support indexing, slicing, or other type of sequence (sequence - like) operation,

CodePudding user response:

Well, very flexible
Prev:.
Next:.