赞
踩
import numpy as np a = np.random.rand(10)print aindex_array = np.argsort(a)print a[index_array]
format输出格式:
x = range(2, 8)print '{0[0]},{0[1]}'.format(x)