numpy.
lookfor
对docstrings进行关键字搜索。
将显示与搜索匹配的对象列表,并按相关性排序。所有给定的关键字都需要在docstring中找到,以便作为结果返回,但顺序并不重要。
包含要查找的单词的字符串。
要通过其docstring的模块的名称。
是否导入包中的子模块。默认值为true。
是否重新生成docstring缓存。默认值为假。
要将输出写入的类似文件的对象。如果省略,请使用寻呼机。
参见
source
info
笔记
相关性仅通过检查关键字是否出现在函数名、docstring的开头等粗略地确定。
实例
>>> np.lookfor('binary representation') Search results for 'binary representation' ------------------------------------------ numpy.binary_repr Return the binary representation of the input number as a string. numpy.core.setup_common.long_double_representation Given a binary dump as given by GNU od -b, look for long double numpy.base_repr Return a string representation of a number in the given base system. ...