a = [1, 2, 3, 4, 5] b = [] for i in a: b.append(a**2) ... To do the same with a 3D array you would need 3 nested loops and to do it in 4D would require 4 ...
確定! 回上一頁