Why is the while conditional in the append method using the value last_node.next? instead of the value next has a value of none

后端 未结 0 1066
名媛妹妹
名媛妹妹 2021-01-03 16:15
class Node:
    def __init__(self, data):
        self.data = data
        self.next = None

    def append(self, item):
        new_node = Node(item)

        if se         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题