python获取当前系统的桌面的路径
也需要win32扩展,原理不懂
from win32com.shell import shell, shellcon
def GetDesktopPath():
ilist = shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_DESKTOP)
return shell.SHGetPathFromIDList(ilist)
补充:Php教程,Php入门
也需要win32扩展,原理不懂
from win32com.shell import shell, shellcon
def GetDesktopPath():
ilist = shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_DESKTOP)
return shell.SHGetPathFromIDList(ilist)
补充:Php教程,Php入门