import sysprint sys.prefix
注册表中有安装路径的键值,位置在:HKEY_LOCAL_MACHINE\SOFTWARE\Python\PythonCore\2.5\InstallPath
import sysprint sys.path