解决问题注意两点:引入 items 的路径。items 包实际是在上一级目录的xxx.items 这个导入包,不知为何无法识别,只能以…items 的方式导入from xxx.xxx.items import xxxItem # 改为 from ..items import xxxItem