Why python eval() can access imported functions, but not classes

后端 未结 0 1268
长情又很酷
长情又很酷 2020-12-08 00:42

I have a module that defines a class and a function:

#barbaz.py
class Bar:
    pass

def baz():
    return "hello"

In another modul

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