开头无法导入
来源:2-12 实现购书比价工具

慕侠5307847
2018-10-24
from spider_dangdang import spider as dangdang
from spider_jingdong import spider as jingdong
from spider_taobao import spider as taobao
from spider_yhd import spider as yhd
写回答
1回答
-
用相对路径的方式导入试试:
from .spider_dangdang import spider as dangdang from .spider_jingdong import spider as jingdong from .spider_taobao import spider as taobao from .spider_yhd import spider as yhd
或者是你先使用一个,然后通过工具的 ALT + ENTER 键提示导入
012018-10-24
相似问题