“Can only iterable” Python error

前端 未结 3 1922
面向向阳花
面向向阳花 2021-01-16 12:34

Hello my fellow programmers.

I am a fairly new programmer, and now I am facing a great predicament. I am getting the error:

can only assign an iterab         


        
3条回答
  •  不知归路
    2021-01-16 13:16

    The RHS of a slice-assignment must be an iterable, not a scalar. Consider slice-deleting and then appending instead.

提交回复
热议问题