如果我有以下Python代码
>>> x = [] >>> x = x + [1] >>> x = x + [2] >>> x = x + [3] >>> x [1, 2, 3]
将x保证永远是[1,2,3],或者是临时元素的其他排序可能吗?
x
[1,2,3]
python
python ×1