Why is this slice assignment not raising an error?

后端 未结 0 1621
孤城傲影
孤城傲影 2021-01-05 07:17

Given the expressions:

>>> l = [1,2,3]
>>> l[10:20] = [4,5]
>>> l
[1, 2, 3, 4, 5]

Why doesn\'t Python nag about th

相关标签:
回答
  • 消灭零回复
提交回复
热议问题