获取Python安装目录

>>> import sys
>>> path=sys.executable
>>> print (path)
C:\Users\jumz-G\AppData\Local\Programs\Python\Python35-32\python.exe

posted @ 2016-12-20 22:17  Juemz  阅读(148)  评论(0编辑  收藏  举报