日々精進

新しく学んだことを書き留めていきます

2017-01-10から1日間の記事一覧

pythonで特定のDirectoryのファイルをすべて処理する

AI

以下のようにos.listdirを使うとできる。 for f in os.listdir(f"{ROOT_PATH}/test/data"): print(f) 参考: stackoverflow.com