Python list syncing each other while being copied

后端 未结 0 648
北荒
北荒 2021-02-13 22:08

I ran into this problem:

list01 = [[1,2],[3,4,5]]

list_copy = list01.copy()
list_copy[0][1] = "A"

print(list01)
print(list_copy)

The

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