相关疑难解决方法(0)

为什么元组比Python中的列表更快?

我刚读过"Dive into Python","元组比列表更快".

元组是不可变的,列表是可变的,但我不太明白为什么元组更快.

有没有人对此进行过性能测试?

python performance tuples list

65
推荐指数
7
解决办法
2万
查看次数

标签 统计

list ×1

performance ×1

python ×1

tuples ×1