python 获取自己exe位置 sys.executable sys.prefix exe路径 >>> sys.executable 'C:\Python27\python.exe' 1 2 lib路径 >>> sys.prefix 'C:\Python27'