我想知道extend函数是否保留了两个列表中的顺序.
>> list = [1, 2, 3] >> list.extend([4, 5]) >> list [1, 2, 3, 4, 5]
延伸总是这样工作吗?
python list
list ×1
python ×1