在编写python模块时,有没有办法防止它被客户端代码导入两次?就像c/c ++头文件一样:
#ifndef XXX #define XXX ... #endif
非常感谢!
python import module
import ×1
module ×1
python ×1