ディレクトリ内の31個のファイルからappendデータをnumpy配列に変換しようとしています。私はラインを持っている理由で directory = r"C:\Users\matth\Downloads\AMSRE"
for root, dirs, filenames in os.walk(directory):
for f in filenames:
if f.start
プロジェクトでは、UTF-8エンコーディングを使用してテキストファイルに追加する必要があります。 は、私の研究の間、私は2つの可能性を発見した: BufferedWriter out = new BufferedWriter(
new OutputStreamWriter(new FileOutputStream("file.txt), "UTF-8")
)
これは、UTF-8で私の
私はPythonの方が新しいです。名前を変更したファイルのリストを保存するのに問題がありますので、最終的にファイルを新しいディレクトリに移動できます。私のコードは、以下に掲載されます。 import os
new_files = []
for orig_name in orig: #This loop splits each file name into a list of s