|  |      1swulling      2013-04-19 01:11:27 +08:00  1 要是做作业,你完全可以按照数据结构的作业搞个Python版的链表。 但是Python不需要去实现链表,我记得水木上有个讨论来着: http://www.newsmth.net/nForum/#!article/Python/73818?p=10 | 
|  |      2sivacohan OP PRO @swulling 不是作业。只是忽然有这么一个想法。不知道Python里面用什么来代替C的指针,同时也不知道用什么东西代替malloc来分配链表元素所需要的空间 | 
|  |      4tywtyw2002      2013-04-19 08:48:35 +08:00  1 | 
|      5BOYPT      2013-04-19 08:49:30 +08:00  1 为什么会要指针啊malloc呢,this.next = Node()不就可以了么; | 
|  |      6sivacohan OP PRO | 
|  |      7venglide      2013-04-19 12:44:14 +08:00 我给楼主推荐一本python算法的书:Python Algorithms Apress |