一聚教程网:一个值得你收藏的教程网站

最新下载

热门教程

python获取当前系统的桌面的路径

时间:2011-08-18 编辑:简简单单 来源:一聚教程网

也需要win32扩展,原理不懂

from win32com.shell import shell, shellcon
def GetDesktopPath():
    ilist = shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_DESKTOP)
    return shell.SHGetPathFromIDList(ilist)

热门栏目