组元是C# 4.0引入的一个新特性,编写的时候需要基于.NET Framework 4.0或者更高版本.组元使用泛型来简化一个类的定义. public class Point { public int X { get; set; } public int Y { get; set; } } //the user customer data type. Point p = new Point() { X = 10, Y = 20 }; //use the predefine generic tup…
list方法 append: 添加一个新的元素到末尾 extend: 扩展元素 insert: 在任何位置插入元素 pop: 弹出末尾的元素 remove: remove first occurrence of value sort: 原地排序 reverse count clear dict方法 not in clear keys values items get setdefault del a_dict tuple方法 count index set 方法…