結果 : permutations with duplicates python