• exe路径
>>> sys.executable
'C:\\Python27\\python.exe'
  • lib路径
>>> sys.prefix
'C:\\Python27'

相关文章: