java 代码
class Solution {
public void mirror(TreeNode root) {
if(root == null) return;
// if(root.left != null && root.right !=null){
TreeNode temp = root.left;
root.left = root.right;
root.right = temp;
mirror(root.left);
mirror(root.right);
// }
}
}