Can I import modules in python using a function

前端 未结 0 697
独厮守ぢ
独厮守ぢ 2021-01-11 13:25

I am working on a small library and I need to know can I import modules like numpy, sklearn and etc. Using functions. For example:

def ml():
    import numpy          


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