📌  相关文章
📜  从模块中获取所有函数作为字符串列表python代码示例

📅  最后修改于: 2022-03-11 14:46:34.641000             🧑  作者: Mango

代码示例1
from inspect import getmembers, isfunction

from somemodule import foo
print(getmembers(foo, isfunction))

# source
# https://stackoverflow.com/questions/139180/how-to-list-all-functions-in-a-python-module