Python| numpy.lookfor() 方法
借助numpy.lookfor()
方法,我们可以使用numpy.lookfor()
方法获取 numpy 中模块的信息。
Syntax : numpy.lookfor(module_name)
Return : Return the information about the module.
示例 #1:
在这个例子中,我们可以看到通过使用numpy.lookfor()
方法,我们能够获取有关模块的信息。
# import numpy
import numpy as np
# using numpy.lookfor() method
print(np.lookfor("isin"))
输出 :
Search results for ‘isin’
————————-
numpy.isinf
Test element-wise for positive or negative infinity.
numpy.compat.is_pathlib_path
Check whether obj is a pathlib.Path object.
numpy.isin
Calculates `element in test_elements`, broadcasting over `element` only.
示例 #2:
# import numpy
import numpy as np
# using numpy.lookfor() method
print(np.lookfor("isdigit"))
输出 :
Search results for ‘isdigit’
————————-
numpy.bytes0.isdigit
B.isdigit() -> bool
numpy.str0.isdigit
S.isdigit() -> bool
numpy.chararray
chararray(shape, itemsize=1, unicode=False, buffer=None, offset=0,
numpy.char.isdigit
Returns true for each element if all characters in the string are
numpy.chararray.isdigit
Returns true for each element if all characters in the string are
None