Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试学习如何在 Python 中创建一个简单的沙盒环境。为此,我想禁用一些__import__模块并将其设为默认值。这样,任何人运行程序的东西都__import__将被指定。
__import__
这样做的方法是什么?