python:~#python3
Python 3.5.2(default, Feb 62020,00:14:34)[GCC 4.8.520150623(Red Hat 4.8.5-39)] on linux
Type "help","copyright","credits"or"license"for more information.>>>import sys
>>> sys.path
['','/usr/local/python/lib/python35.zip','/usr/local/python/lib/python3.5','/usr/local/python/lib/python3.5/plat-linux','/usr/local/python/lib/python3.5/lib-dynload','/usr/local/python/lib/python3.5/site-packages']
1.获取python路径python:~ #python3Python 3.5.2 (default, Feb 6 2020, 00:14:34) [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linuxType "help", "copyright", "credits" or "license" for more information.&g...