I have a.py
and b.py
in the same directory. In a.py the code is
A = 'a1'
from b import B
print(B)
In b.py the code is
B = 'b1'
from a import A
print(A)
Now run a.py, the result is
b1
a1
b1
I don't understand. Will somebody explain it? Thanks!