Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我似乎忘记了在 python 和 numpy 中查找函数的命令?是否有可用于在 numpy 和 python 中搜索函数的快捷方式?假设您知道函数的名称,我知道使用了帮助。函数是查找吗?
我认为您正在寻找help()和/或dir(). 尝试:
help()
dir()
import os help(os)
和:
dir(str)
In [9]: import numpy as np In [10]: dir(np)[-10:] Out[10]: ['vectorize', 'version', 'void', 'void0', 'vsplit', 'vstack', 'where', 'who', 'zeros', 'zeros_like']