阅读背景:

返回脚本中使用的导入Python模块列表?

来源:互联网 

I am writing a program that categorizes a list of Python files by which modules they import. As such I need to scan the collection of .py files ad return a list of which modules they import. As an example, if one of the files I import has the following lines:I am writing a program that categorizes a list




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: