Python 練習題

1 尋找平衡點:數組 假如一個數組中的元素,其前面的部分等於後面的部分,那麼這個點的位序就是平衡點 debug numbers = [1,3,5,7,8,25,4,20,29]; sum = 0; for num in numbers:     sum += num;#求出數組的和 for index in range(len(numbers)):     former = 0;     afte
相關文章
相關標籤/搜索