我刚读过"Dive into Python","元组比列表更快".
元组是不可变的,列表是可变的,但我不太明白为什么元组更快.
有没有人对此进行过性能测试?
python performance tuples list
list ×1
performance ×1
python ×1
tuples ×1