Python modifying copied list

前端 未结 0 808
太阳男子
太阳男子 2020-12-13 00:15

The output of below code snippet shows as [1, 2, [12, 100], 5, 6]. I was expecting the output would be [11, 2, [12, 100], 5, 6]. I want to understand why first element val

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