查看Python安装路径
由于笔者自己经常忘记了如何查看Python的安装路径,又经常会用到Python的安装路径,因此记录一下,我们可以在命令行模式下输入:
>>> import sys >>> sys.path [\'\', \'C:\\Python27\\Lib\\idlelib\', \'C:\\Python27\\lib\\site-packages\\robotframework_selenium2library-1.5.0-py2.7.egg\', \'C:\\Python27\\lib\\site-packages\\docutils-0.14-py2.7.egg\', \'C:\\Python27\\lib\\site-packages\\decorator-4.2.1-py2.7.egg\', \'C:\\Windows\\system32\\python27.zip\', \'C:\\Python27\\DLLs\', \'C:\\Python27\\lib\', \'C:\\Python27\\lib\\plat-win\', \'C:\\Python27\\lib\\lib-tk\', \'C:\\Python27\', \'C:\\Python27\\lib\\site-packages\', \'C:\\Python27\\lib\\site-packages\\win32\', \'C:\\Python27\\lib\\site-packages\\win32\\lib\', \'C:\\Python27\\lib\\site-packages\\Pythonwin\', \'C:\\Python27\\lib\\site-packages\\wx-2.8-msw-unicode\']
得解。