需求:你需要在windows系统下设置文件的属性,比如要将文件属性设置为只读,归档等.讨论:PyWin32's的win32api模块提供了方法SetFileAttributes,使得这个问题的解决方案变得异常简单: import win32con, win32api, os# create a file, just to show how to manipulate itthefile = 'test'f = open('test', 'w')...【阅读全文】
函数声明 Function long SHGetSpecialFolderLocation (Long
hwndOwner, Integer nFolder, ref Long ppidl) library
"shell32.dll" Function long SHGetPathFromIDList(long pidl, ref String
szPath) library "shell32.dll" Alias for "SHGetPathFromIDListA【阅读全文】
函数声明 Function long SHGetSpecialFolderLocation (Long
hwndOwner, Integer nFolder, ref Long ppidl) library
"shell32.dll" Function long SHGetPathFromIDList(long pidl, ref String
szPath) library "shell32.dll" Alias for "SHGetPathFromIDListA【阅读全文】