乘除法/次方. import numpy as npa = np.array([10,20,30,40])# 從0到3的array b = np.arange(4)print(a,b) print('\n')c = b**2 d = a*b e = a/bprint(c) print(d)
確定! 回上一頁