我正在尝试使用Python。我想在几个列表(L[i])中分割一个列表(高原),但我有以下错误消息:File"C:\Users\adescamp\Skycraper\skycraper.py",line20,initem=plateau[debut:fin]TypeError:sliceindicesmustbeintegersorNoneorhavean__index__method相关的行是带有item=Plateau[debut:fin]的行frommathimportsqrtplateau=[2,3,1,4,1,4,2,3,4,1,3,2,3,2,4,1]taille=sqrt(
我正在尝试使用Python。我想在几个列表(L[i])中分割一个列表(高原),但我有以下错误消息:File"C:\Users\adescamp\Skycraper\skycraper.py",line20,initem=plateau[debut:fin]TypeError:sliceindicesmustbeintegersorNoneorhavean__index__method相关的行是带有item=Plateau[debut:fin]的行frommathimportsqrtplateau=[2,3,1,4,1,4,2,3,4,1,3,2,3,2,4,1]taille=sqrt(