python 获取桌面路径 (windowns 10)
1 #该方法在用户改变了桌面路径后,会失效 2 import os 3 def GetDesktopPath(): 4 return os.path.join(os.path.expanduser("~"), 'Desktop')
1 #该方法在用户改变了桌面路径后,会失效 2 import os 3 def GetDesktopPath(): 4 return os.path.join(os.path.expanduser("~"), 'Desktop')