1.清空字典中元素清空,dict变为{} L.clear()-> None. Remove all items from L 1 2 3 4 >>> L ={'shaw':23,'sam':36,"eric":40} >>> L.clear() >>> print L {} 2. 返回一个字典的浅复制 L.copy()-> a shallow copy of L 1 2 3 >>> L ={'shaw
相关文章: http://www.360doc.com/content/13/1003/23/14070959_318861279.shtml http://www.360doc.com/content/13/1003/23/14070959_318861221.shtml (本文未经过测试) using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace 集合 { c