美文网首页
Python查看包的文档

Python查看包的文档

作者: imjcw | 来源:发表于2019-07-12 09:30 被阅读0次

命令行方式

  • 执行 python 方法。
  • 引入需要查看的包名
  • 使用help函数查看
imjcw@imjcwPC:~$ python
Python 2.7.15+ (default, Nov 27 2018, 23:36:35) 
[GCC 7.3.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import redis
>>> help(redis)

编写文件执行方式

# -*- coding: utf-8 -*-

import redis 

help(redis)

相关文章

网友评论

      本文标题:Python查看包的文档

      本文链接:https://www.haomeiwen.com/subject/hghjkctx.html