📜  打印所有对象链表 python - TypeScript 代码示例

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

代码示例2
def printLinkedList(self):
    node = self.head
    while node != None:
        print(node.getData())
        node = node.getNext()