算法会覆盖Numpy数组元素,但不会覆盖Python列表元素
前一段时间,当我遇到这种奇怪的行为时,我一直在测试几种不同的python排序算法。
Using a merge sort implementation copied from GeeksforGeeks, I noticed that my Numpy arrays were getting overwritten by the last element in the array, while built-in Python arrays were sorted correctly.
这种行为的原因是什么?...