friends = my[:] #1 friends[:] = my #2
两个变量都可以是列表或字符串,即可迭代的。我正在学习蟒蛇。
python python-3.x
python ×1
python-3.x ×1