import os
path = 'D:\******……' #定义路径

folders = os.listdir(path)
for folder in folders:
    print(folder)