#python非递归解法,可能思路比较麻烦 class Solution: def Serialize(self, root): # write code here #先序遍历二叉树 if no...