結果 : how to represent tree in python