mafser 2023-06-09 16:29 采纳率: 33.3%
浏览 69
已结题

AttributeError: module 'myutils' has no attribute 'sort_contours'

AttributeError: module 'myutils' has no attribute 'sort_contours',应该怎么办

  • 写回答

2条回答 默认 最新

  • 树莓大王 2023-06-09 17:16
    关注

    可能的原因是sort_contours函数并不存在于myutils模块中,或者这个函数名被拼写错误了。你可以检查一下myutils模块的源代码,确保其中定义了sort_contours函数,并且函数名没有被错误地拼写。如果sort_contours函数确实不存在于myutils模块中,你需要先编写这个函数并将其添加到myutils模块中,然后重新运行你的代码。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

问题事件

  • 系统已结题 6月25日
  • 已采纳回答 6月17日
  • 创建了问题 6月9日