📜  如何添加到链表python代码示例的开头

📅  最后修改于: 2022-03-11 14:46:27.900000             🧑  作者: Mango

代码示例1
def insert_at_start(self, data):
        new_node = Node(data)
        new_node.ref = self.start_node
        self.start_node= new_node