''' Welcome to LearnPython.NET File Name: PNumpy.py Download from: https://www.learnpython.net/cn/python-code-samples.html Author: LearnPython.Net Editor: CoderChiu ''' import numpy as np def Log(np): print(np) #print("\n") npA = np.arange(15).reshape(3, 5) #捉到的小朋友数量; nListCabNum = [5,7,4] npArrayCabNum = np.array(nListCabNum) print(npArrayCabNum) print(type(npArrayCabNum)) ''' Log(npA) Log(npA.sum()) Log(npA.min()) Log(npA.max()) Log(npA.mean()) Log(npA + 1) Log(npA.shape) Log(npA.ndim) Log(npA.itemsize) Log(npA.dtype) Log(npA.size) Log(npA.data) Log(type(npA)) '''