How do I create a list from an already existing list without the new list changing?

前端 未结 0 339
野的像风
野的像风 2020-12-11 13:55

In this example:

m = [100, 33, 234, 5]
n = m
m.append(89)
print(n)
# Output: [100, 33, 234, 5, 89]

How do I make it so n doesn\'

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