Skip to content

Instantly share code, notes, and snippets.

@kanekomasahiro
Created April 22, 2021 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kanekomasahiro/9ebb806cc82f07790a07e82ad0408a5d to your computer and use it in GitHub Desktop.
Save kanekomasahiro/9ebb806cc82f07790a07e82ad0408a5d to your computer and use it in GitHub Desktop.
pythonで名前の一部が一致するディレクトリ内のファイルを取得する.
from glob import glob
for file_name in glob('../../*.txt'):
print(file_name)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment