List variable assignment inside a function causing unwanted change to the global variable

后端 未结 0 1701
孤城傲影
孤城傲影 2020-12-04 03:40

I am trying to create a copy of a list inputted into a function, then reassign one of the copied list\'s values, then return the new list.

w is returned correctly as

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