class Solution:
def Mirror(self , pRoot: TreeNode) -> TreeNode:
if not pRoot:
return None
pRoot.left, pRoot.right = self.Mirror(pRoot.right), self.Mirror(pRoot.left)
return pRoot
递归,从叶子节点开始依次交换左右子树