问题
I have 2 modules: a:
import another_module
def func():
b:
import a
x=a.func()
This is showing error: module 'a' has no attribute 'func'. What i am doing wrong in importing a.ipynb
回答1:
Make sure your module is names 'a.py', and it is in the same folder as b, otherwise, in the place where all the other modules are stored.
来源:https://stackoverflow.com/questions/61870325/module-a-has-no-attribute-func