📅  最后修改于: 2022-03-11 14:45:41.319000             🧑  作者: Mango
# A recursive generator that generates Tree leaves in in-order.
def inorder(t):
if t:
for x in inorder(t.left):
yield x
yield t.label
for x in inorder(t.right):
yield x