📜  List vs Set - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:25.005000             🧑  作者: Mango

代码示例2
Set is unordered
List is ordered collection, 
List allow duplicate elements
Set does not allow duplicates.
List can have multiple null elements
Set will allow only one null element.
The List can contain duplicate elements
Set includes unique items.