結果 : longest prefix match python