【发布时间】:2015-06-25 14:40:42
【问题描述】:
如何从customer_helper_test.py 导入customer_helper.py 中的CustomerHelper 类?这是可能的?我使用了from ..helpers..tests..app.helpers.customer_helper import CustomerHelper,但它的语法无效。
这是整理好的文件夹:
program/
app/
helpers/
customer_helper.py
__init__.py
__init__.py
tests/
helpers/
customer_helper_test.py
__init__.py
__init__.py
__init__.py
提前致谢!
【问题讨论】:
标签: python file class python-2.7 python-3.x