python3 ImportError: cannot import name 'Sitelocation' 问题
RT,就是在Bpmn里面导入Sitelocation在Sitelocation中导入Bpmn(因为要是用bpmn中的变量),运行sitelocation不报错,但是Bpm...
RT,就是在Bpmn里面导入Sitelocation 在Sitelocation中导入Bpmn(因为要是用bpmn中的变量),运行sitelocation不报错,但是Bpmn会报错,求大神讲解下为什么?
展开
1个回答
展开全部
think there is something likeclass Connect() in your connect.py.
If the script to be executed is under the same path to connect.py
from connect import Connect
Else
from tpymysql.connect import Connect
The Pythonic way is making everything clear and specific. So when you want to import something, import what's inside other than the file itself.
If the script to be executed is under the same path to connect.py
from connect import Connect
Else
from tpymysql.connect import Connect
The Pythonic way is making everything clear and specific. So when you want to import something, import what's inside other than the file itself.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询