1つのファイルを翻訳できます。しかし、ディレクトリ全体を翻訳する方法がわかりません。ドキュメントから:
To translate an entire project from one directory tree to another use:
$ 2to3 --output-dir=python3-version/mycode -W -n python2-version/mycode
具体例を教えていただけますか?に python2 ファイルがD:\Dir1
あり、新しいファイルを取得したいと考えていますD:\Dir2
。入力中のコマンドプロンプトにいDir1
ますc:\Users\........\Python36\Tools\scripts\2to3.py -w
それで、私が使用すべきコマンドは何ですか?