Learning Python 10.17
摘要:
lists really are arrays inside the standard Python interpreter, not linked structures.这句话我没完全理解List中的方法同样在http://www.cnblogs.com/kilimanjaroup/archive/2012/10/10/2718712.html中已经全部列出需要注意的是,相比L+[x]一类的操作,L.append(x)这种method call会更快,因为它是in-place操作,不产生新的变量。sort也是原地修改,所以L=L.sort()会导致丢失L的引用。列表的排序操作有以下几种方法1 阅读全文
posted @ 2012-10-18 16:09 起立马扎罗 阅读(154) 评论(0) 推荐(0)
浙公网安备 33010602011771号