iis服务器助手广告广告
返回顶部
首页 > 资讯 > 后端开发 > Python >如何用Python 2.5.1帮助文档设置
  • 338
分享到

如何用Python 2.5.1帮助文档设置

2023-06-17 15:06:38 338人浏览 八月长安

Python 官方文档:入门教程 => 点击学习

摘要

如何用python 2.5.1帮助文档设置,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。Python 2.5.1 帮助文档设置问题Python 2.5.1 (r251:5486

如何用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

[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 帮助文档设置问题中你需要在/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 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帮助文档设置的方法了吗?如果还想学到更多技能或想了解更多相关内容,欢迎关注编程网Python频道,感谢各位的阅读!

--结束END--

本文标题: 如何用Python 2.5.1帮助文档设置

本文链接: https://www.lsjlt.com/news/290203.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作