查看Python库的安装目录
安装好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'>
>>>