把代码处修改如下:
#print('Optimal number of features %d' % percentiles[opt]) print('Optimal number of features %d' % np.array(percentiles)[opt])