Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
考虑我使用以下方法从文本文件加载列:
x, y, z = np.loadtxt(myfile, unpack=True)
sort 的语法是什么x,y并z增加x?
x
y
z
你想用numpy.argsort
numpy.argsort
argsortx = np.argsort(x) x, y, z = x[argsortx], y[argsortx], z[argsortx]