AttributeError: у объекта 'module' нет атрибута
У меня есть два модуля Python:
a.py
import b
def hello():
print "hello"
print "a.py"
print hello()
print b.hi()
b.py
import a
def hi():
print "hi"
Когда я бегуa.py
, Я получил:
AttributeError: 'module' object has no attribute 'hi'
Что означает ошибка? Как мне это исправить?