#coding:utf-8 import os for root,dirs,files in os.walk("D:"):
for fileItem in files:
print root + os.sep + fileItem
结果如下
2022-05-27 07:48:34
#coding:utf-8 import os for root,dirs,files in os.walk("D:"):
for fileItem in files:
print root + os.sep + fileItem
结果如下