python 列出文件夹下所有的文件以及文件夹名

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

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