I've read the documentation, but I still can't creat my own packages. How should the __init__.py look like? Cause i've tried to let it blank and some stuff like
my_package/ __init.py__ sub_pack/ __init.py__ test.py
but it pointed syntax error
If I don't write anything on it, no error occurs. But I can't import anything either.
I've tried to import as:
import my_package import test # (didn't work) import my_package.test # (nope) from my_package import test # (didn't work either)
Edited 6 Years Ago by Hawkeye Python: n/a