更新时间:2023-09-21 16:54:10
这可以通过 execfile() ,但是您应该考虑为此使用其他一些机制,例如多态性或插件.
execfile()
This can be done with execfile(), but you should consider using some other mechanism for this instead such as polymorphism or plugins.
在Python中,如何在不更改命名空间的情况下将一个文件包含(而不导入)在另一个文件中(宏样式)?
在 Python 中,如何在不更改命名空间的情况下在另一个文件中包含(不导入)一个文件,宏样式?