在Python中获取短path

如何在Windows中使用python获取文件的短path

我正在使用下面的代码,

#!/usr/bin/python import os import sys fileList = [] rootdir = sys.argv[1] for root, subFolders, files in os.walk(rootdir): for file in files: fileList.append(os.path.join(root,file)) for File in fileList: print File 

Solutions Collecting From Web of "在Python中获取短path"