class Solution:
def inorderTraversal(self, root):
"""
:type root: TreeNode
:rtype: List[int]
"""
if root == None:
return []
ans = []
ans += self.inorderTraversal(root.left)
ans.append(root.val)
ans += self.inorderTraversal(root.right)
return ans