python中打印所有的关键字

Posted xiongsheng666

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python中打印所有的关键字相关的知识,希望对你有一定的参考价值。

python中打印所有的关键字

1.查看所有的关键字

help("keywords")

2. 查看python所有的modules

help("modules")

3. 单看python所有的modules中包含指定字符串的modules

 help("modules yourstr")

4. 查看python中常见的topics

help("topics")

5.查看python标准库中的module

import os.path
help("os.path")

6. 查看python内置的类型

help("list")

7.查看python类型的成员方法

help("str.find")

8.查看python内置函数

help("open")

以上是关于python中打印所有的关键字的主要内容,如果未能解决你的问题,请参考以下文章