标签:not 执行 bool iss etc pytho val type tree
class Solution(object): def isSymmetric(self, root): """ :type root: TreeNode :rtype: bool """ if not root:return True def Tree(p,q): if not p and not q:return True if p and q and p.val==q.val: return Tree(p.left,q.right) and Tree(p.right,q.left) return False return Tree(root.left,root.right)
标签:not 执行 bool iss etc pytho val type tree
原文地址:https://www.cnblogs.com/taoyuxin/p/11831138.html