我看到这篇文章https://stackoverflow.com/a/5169864/2065006
所以我想我会做实验。有更多经验的人可以解释这些结果吗?
>>> import win32com.client
>>> shellobject = win32com.client.Dispatch("Wscript.Shell")
>>> print (shellobject.SpecialFolders("ProgramFiles"))
>>> print (shellobject.SpecialFolders("Common AppData"))
>>> print (shellobject.SpecialFolders("AppData"))
F:\Documents and Settings\Randy1\Application Data
>>> print (shellobject.SpecialFolders("My Music"))
>>> print (shellobject.SpecialFolders("MyMusic"))
>>> print (shellobject.SpecialFolders("AppData"))
F:\Documents and Settings\Randy1\Application Data