标签: python import module
import os os.exit(0)
有没有办法在OS中导入特定模块,而不是导入整个模块? (这可以使我的程序在使用时更有效。)
答案 0 :(得分:-1)
from os import _exit
此代码应专门导入,以改善“性能”。