import os # 現在のディレクトリとその内容を表示 for root, dirs, files in os.walk("."): print(f"Directory: {root}") for file in files: print(f" File: {file}")