Python查看帮助---help函数

查看所有的关键字:help("keywords")

查看所有的modules:help("modules")

单看所有的modules中包含指定字符串的modules: help("modules yourstr")

查看中常见的topics: help("topics")

例如想要查看CALLS主题的帮助,则:help("CALLS")

查看标准库中的module:import os.path + help("os.path")

查看内置的类型:help("list")
查看类型的成员方法:help("str.find") 
查看内置函数:help("open")

原文地址:https://www.cnblogs.com/51testing/p/6367426.html