結果 : how to implement tree data structure in python