python 打印某个文件夹下的所有文件 三行代码

import os
dir = "C:/Users/test/Desktop"
[print((i+"/"+file).replace("\\","/")) for i,j,k in os.walk(dir) for file in k]