Python numpy.lookfor()方法
在numpy.lookfor()方法的帮助下,我们可以通过numpy.lookfor()方法获得numpy中模块的信息。
语法: numpy.lookfor(module_name)
返回:返回有关模块的信息。
例子#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
Calculateselement in test_elements
, broadcasting overelement
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