当然,有一个论点是 itertools 应该提供避免重复排列的功能,但是这种功能应该是 itertools.permutations 的补充,而不是代替它。 为什么不编写这样的函数 ...
確定! 回上一頁