python中是否有任何函数可以在所有包中定位类?

2024-05-19 14:01:03 发布

您现在位置:Python中文网/ 问答频道 /正文

考虑如果我们使用大库,如^ {CD1>}或^ {< CD2>}。

We have some classname known to us . And we have to find the module location for that class name. like the locate command in linux which search directories for the specified file name.

所以我的问题是,python中是否有其他方法可以在不同包之间搜索类?那么它将返回类所在的包或子包


Tags: andthetonameforhavesomewe