Override function dynamically loaded by another module

后端 未结 0 883
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-03 20:39

I have the following code:

import module_a
module_a.function_a()

If I wanted to override function_a(), I could do something like:

         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题