用Python 2.5.1帮助文档设置的实际操作方案介绍

开发 后端
本文主要介绍的是关于Python 2.5.1在实际应用中对帮助文档设置的相关问题的一些具体解决方案的介绍,以下是文章的详细介绍。

如果你对用Python 2.5.1如何帮助文档设置的实际操作步骤存在问题时,或对Python 2.5.1的相关代码的具体应用不了解时,弄都可以浏览以下的文章,它会涉及到相关问题的解决,希望你在看完我们的文章会有所体会。

Python 2.5.1 帮助文档设置问题

Python 2.5.1 (r251:54863, Apr 8 2008, 01:20:16)

  1. [GCC 4.3.0 20080404 (Red Hat 4.3.0-6)] on linux2  
  2. Type "help", "copyright", "credits" or "license" 
    for more information.  
  3. >>> help('print')  
  4. Sorry, topic and keyword documentation is not 
    available because the Python  
  5. HTML documentation files could not be found. 
    If you have installed them,  
  6. please set the environment variable PYTHONDOCS 
    to indicate their location.  
  7. On the Microsoft Windows operating system, the 
    files can be built by  
  8. running "hh -decompile . PythonNN.chm" in the 
    C:\PythonNN\Doc
    > directory.  
  9. >>>   

操作系统是fedora 9。首先,下载帮助文档。然后,解压至/home/sword/下载/Python-Docs-2.5

  1. [sword@localhost Python-Docs-2.5]$ ls  
  2. about.html api doc icons inst mac ref whatsnew  
  3. acks.html dist ext index.html lib modindex.html tut  
  4. [sword@localhost Python-Docs-2.5]$ pwd 

在Python 2.5.1 帮助文档设置问题中你需要在/home/sword/下载/Python-Docs-2.5***,修改配置文件~/.bash_profile,末尾加一句:PYTHONDOCS=/home/sword/下载/Python-Docs-2.5export PYTHONDOCS

  1. $ python  
  2. Python 2.5.1 (r251:54863, Apr 8 2008, 01:20:16)   
  3. [GCC 4.3.0 20080404 (Red Hat 4.3.0-6)] on linux2  
  4. Type "help", "copyright", "credits" or "license" 
    for more information.  
  5. >>> help('print') 

6.6 The print statement

 

  1. print_stmt ::"print" ( [expression[1] ("," 
    expression[2])* [","]]  
  2. | ">>" expression[3] [("," expression[4])+ [","]] )  
  3. Download entire grammar as text.[5]  
  4. ...   

以上就是对Python 2.5.1 帮助文档设置问题的相关的内容的介绍,望你会有所收获。

【编辑推荐】

  1. 对Python技巧——代码效率的实际应用详解
  2. 在python正则表达式教程中正确使用正则表达式方案
  3. Python编程语言写的程序比C程序要短的原因
  4. Python教程中10.4 备份脚本代码中需注意的地方
  5. Python web开发框架的具体操作步骤的介绍
责任编辑:佚名 来源: 互联网
相关推荐

2010-03-16 12:39:09

python for

2010-03-16 10:00:37

Python函数

2010-03-19 17:39:49

Python编程

2010-04-12 13:05:56

Oracle软件

2010-04-29 15:09:42

Oracle密码文件

2010-03-26 09:06:06

Python连接数据库

2010-03-24 18:54:53

Python语言

2010-04-12 14:44:06

Oracle Impd

2010-03-26 18:51:51

Python作用域

2010-05-12 13:45:25

Mysql 复制设置

2010-03-16 10:58:35

Python字符串

2010-03-17 15:01:24

Python复制文件

2010-03-18 13:14:55

Python 正则表达

2010-03-24 18:00:30

Python中文转换u

2010-03-17 15:17:19

Python矩阵转置

2010-03-17 13:14:00

Python Libr

2009-12-30 15:53:28

Silverlight

2010-04-16 09:52:40

Oracle JOB

2010-03-15 16:54:11

Python字典

2010-03-22 18:20:47

Python正则表达式
点赞
收藏

51CTO技术栈公众号