# -*- coding: cp936 -*-
#python 27
#xiaodeng
import pydoc
#主要用于从python模块中自动生成文档,这些文档可以基于文本呈现,也可以生成web页面,还可以在服务器上以浏览器的方式呈现。



'''
#一、在cmd命令中查看python帮助信息
#步骤:
1、将cmd命令环境切换到python所在目录,命令为:cd c:\\python27
2、python -m pydoc <模块名等> 如:python -m pydoc glob



#二、在本机上,按照给定的端口启动http
1、命令为:python -m pydoc -p 8888
然后得到输出结果为:
pydoc server ready at http://localhost:8888/
2、然后在浏览器地址中输入http://localhost:8888/,即可查看到python所对应的http帮助文档




#三、在cmd命令符下用命令在python27目录下 生成html文件
1、c:\Python27>python -m pydoc -w urllib2
2、write urllib2.html  #在python27目录下可查看html文件
'''

 

相关文章:

  • 2021-11-07
  • 2021-07-30
  • 2021-10-24
  • 2021-11-23
  • 2021-08-08
  • 2022-01-06
  • 2021-10-28
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2022-12-23
  • 2021-09-10
  • 2021-12-29
  • 2021-11-16
  • 2021-04-04
相关资源
相似解决方案