阅读背景:

在Python中,如何有效地管理脚本文件之间的引用?

来源:互联网 

I have a fair number of Python scripts that contain reusable code that are used and referenced by other Python scripts. However, these scripts tend to be scattered across different directories and I find it to be somewhat tedious to have to include (most often multiple) calls to sys.path.append on my top-level scripts. I just want to provide the 'import' statements without the additional file references in the same script.I have a fair number of Python scripts that con




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

分享到: