itertools.permutations() 为可迭代对象生成排列 >>> import itertools >>> for p in itertools.permutations('ABCD'): ... print(p) ('A', 'B', 'C', ...
確定! 回上一頁