命令行方式
- 执行
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)
网友评论