itertools
モジュールを使用して関数を使用しようとしていpermutations
ますが、Macに問題があります。
Linuxを使用して別のコンピューターでプログラミングしてきましたが、コードを使用しても問題ありません。
import itertools
ps = itertools.permutations(m)
これは、Macで作業しているときに発生するエラーです。
AttributeError: 'module' object has no attribute 'permutations'
Macで「itertools」を使用する方法を知っている人はいますか?