a.py
from b import b
print ‘---------this is module a.py----------‘
def a():
print("hello, a")
b()
a()
b.py
from a import a
print ‘----------this is module b.py----------‘
def b():
print("hello, b")
def c():
a()
c()
运行python a.py
原文:https://www.cnblogs.com/mxsf/p/10374378.html