安装好Python后,有时需要查看某些类库的安装目录,用以参考它们的用户手册和文档,这时,就需要查看Python的安装目录。
 
方法如下:

908869@CNSHA05NB70810 ~ 
$ python
Python 2.6.5 (r265:79063, Jun 12 2010, 17:07:01)
[GCC 4.3.4 20090804 (release) 1] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import SimpleHTTPServer
>>> reload(SimpleHTTPServer);
<module \'SimpleHTTPServer\' from \'/usr/lib/python2.6/SimpleHTTPServer.pyc\'>
>>>

版权声明:本文为heart-runner原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/heart-runner/archive/2012/01/18/2325791.html