输入一个链表的头节点,按链表从尾到头的顺序返回每个节点的值(用数组返回)。 # -*- coding:utf-8 -*- # class ListNode: # def __init__(self, x): # self.val = x # self.next = None class Stack: def __init__(self): &n...