exe路径 >>> sys.executable 'C:\\Python27\\python.exe' lib路径 >>> sys.prefix 'C:\\Python27' 转载于:https://www.cnblogs.com/yongqing/p/9595977.html