实例+解释如下(表格):关键是要明白python中数组的下标体系.一套从左往右,一套从右往左. 1 import numpy as np 2 import sys 3 4 def main(): 5 A=np.array([1,2,3,4,5,6,7,8,9,0]) 6 B=A.copy() 7 print A 8 print 'same as print A,',A[:] 9 print 'same as print A,',A[::1] 10 print 'reverse A,',A[::-…