I'm new to python. This is not my actual case, it's just my curiosity about importing nested class.
So I have a main.py and test.py.
test.py:
class one():
class two():
def twodef():
pass
so in my main.py, I can do 'import test'
or 'from test import one'
. But I got error when do: 'from test.one import two
'.
error : ImportError: No module named one
Anyone can explain this?