asytpe方法
In [1]: import numpy as np
In [2]: array1 = np.array([1, 2, 3, 4, 5])
In [3]: array1
Out[3]: array([1, 2, 3, 4, 5])
In [4]: array1.astype('str')
Out[4]: array(['1', '2', '3', '4', '5'], dtype='<U11')
In [1]: import numpy as np
In [2]: array1 = np.array([1, 2, 3, 4, 5])
In [3]: array1
Out[3]: array([1, 2, 3, 4, 5])
In [4]: array1.astype('str')
Out[4]: array(['1', '2', '3', '4', '5'], dtype='<U11')