itertools.permutations() simply works this way. It takes an arbitrary iterable as an argument, and always returns an iterator yielding ...
確定! 回上一頁