ファイルイメージを走査するPythonコードを書く

答え: os.walk("folder path") のルート、ディレクトリ、ファイルの os をインポートします: ファイル内のファイルの場合: if file.endswith(".jpg"): print(os.path.join(root, file))

おすすめ

転載: blog.csdn.net/weixin_42610671/article/details/129594282