cur_node在哪定义的呀,,,
第42行code: node_next=self.cur_node 你想要拿到的是第37行的cur_node? 但是这个是类属性啊,不是实例属性。你可以用ListNode.cur_node调用,也可以用self.__class__.cur_node来调用。