TypeError: slice indices must be integers or None or have an __index__ method

在做人臉特徵點檢測時用python寫的如下幾行代碼,一直運行有問題。 運行一直報 所劃紅線所在行出現「 TypeError: slice indices must be integers or None or have an __index__ method」的錯誤,百度了一下,網上大概分析造車這個錯誤的原因是 數據的格式問題。 可能存在問題1: 如錯誤是出現在帶除法的那行,那麼需要你將除法符號"
相關文章
相關標籤/搜索