Python命令行帮助的用法

来源:互联网 发布:入门hifi耳机推荐知乎 编辑:程序博客网 时间:2024/04/28 08:43
    1)进入帮助交互模式
        >>>  help()
    2)输入模块、关键字或主题名称以得到帮助
             a.查看python关键字if的帮助
               help> if
             b.查看模块sys的帮助
               help>sys
             c.显示python中的所有主题
               help>topics
               help>FILES
             d.显示python中的所有模块
                     help> modules
             e.显示python中的所有关键字    
                     help> keywords
                     help>if        
             f.查找包含db的模块
                     help> modules db

         

来自:http://iamcaihuafeng.i.sohu.com/blog/view/172403655.htm      

原创粉丝点击