Python 实现【全排列】 from math import factorialfrom collections import counterdef count_distinct_permutations(s):n = len(s)char_counts = Counter(s)tota python total import len counte 2025-03-31 11:29 2