假设我有一个 Python 文件,我想将其导入并在其他任何地方使用;如何编写 Python 代码以sys.path
永久插入此模块的路径?
user3241727
问问题
1096 次
1 回答
-1
You could set your PYTHONPATH environment variable. This could be done by setting it in the /etc/profile file if you are on Linux.
于 2014-04-12T21:52:22.830 回答