我想尝试使用itertools
模块中的permutations
函数。但每次尝试实现时都会出现以下错误:
代码:
from itertools import permutations
txt=permutations('SKIN')
print(txt)
输出:
<itertools.permutations object at 0x7fee48665950>
我尝试在命令提示符上使用命令pip install itertools
,但是一直遇到以下错误:
ERROR: Could not find a version that satisfies the requirement itertools (from versions: none)
ERROR: No matching distribution found for itertools
如何安装这个软件包?
for x in txt: print(x)
。 - Kota Mori