import numpy as np
indices = "hongnngn"
target = np.zeros(shape=(5,),dtype=np.long)
target[:6]= indices
print(target)
ValueError: invalid literal for int() with base 10: 'hongnngn'
indices = [1,2,4,5,7]
target = np.zeros(shape=(10,),dtype=np.long)
target[:5]= indices
print(target)
报错2
TypeError: cannot unpack non-iterable NoneType object