結果 : python tree data structure code