用Python 2.5.1幫助文檔設(shè)置的實(shí)際操作方案介紹
如果你對用Python 2.5.1如何幫助文檔設(shè)置的實(shí)際操作步驟存在問題時(shí),或?qū)ython 2.5.1的相關(guān)代碼的具體應(yīng)用不了解時(shí),弄都可以瀏覽以下的文章,它會(huì)涉及到相關(guān)問題的解決,希望你在看完我們的文章會(huì)有所體會(huì)。
Python 2.5.1 幫助文檔設(shè)置問題
Python 2.5.1 (r251:54863, Apr 8 2008, 01:20:16)
- [GCC 4.3.0 20080404 (Red Hat 4.3.0-6)] on linux2
- Type "help", "copyright", "credits" or "license"
for more information.- >>> help('print')
- Sorry, topic and keyword documentation is not
available because the Python- HTML documentation files could not be found.
If you have installed them,- please set the environment variable PYTHONDOCS
to indicate their location.- On the Microsoft Windows operating system, the
files can be built by- running "hh -decompile . PythonNN.chm" in the
C:\PythonNN\Doc> directory.- >>>
操作系統(tǒng)是fedora 9。首先,下載幫助文檔。然后,解壓至/home/sword/下載/Python-Docs-2.5
- [sword@localhost Python-Docs-2.5]$ ls
- about.html api doc icons inst mac ref whatsnew
- acks.html dist ext index.html lib modindex.html tut
- [sword@localhost Python-Docs-2.5]$ pwd
在Python 2.5.1 幫助文檔設(shè)置問題中你需要在/home/sword/下載/Python-Docs-2.5***,修改配置文件~/.bash_profile,末尾加一句:PYTHONDOCS=/home/sword/下載/Python-Docs-2.5export PYTHONDOCS
- $ python
- Python 2.5.1 (r251:54863, Apr 8 2008, 01:20:16)
- [GCC 4.3.0 20080404 (Red Hat 4.3.0-6)] on linux2
- Type "help", "copyright", "credits" or "license"
for more information.- >>> help('print')
6.6 The print statement
- print_stmt ::= "print" ( [expression[1] (","
expression[2])* [","]]- | ">>" expression[3] [("," expression[4])+ [","]] )
- Download entire grammar as text.[5]
- ...
以上就是對Python 2.5.1 幫助文檔設(shè)置問題的相關(guān)的內(nèi)容的介紹,望你會(huì)有所收獲。
【編輯推薦】