有没有更快的方法来交换Python中的两个列表元素
L[a], L[b] = L[b], L[a]
还是我不得不求助于Cython或Weave等?
python performance
performance ×1
python ×1