题解 | 店铺销售的排名
店铺销售的排名
https://www.nowcoder.com/practice/e93c60d0798843558bc44d34d8c9faed
import numpy as np
data = np.genfromtxt('Shop.csv',delimiter = ',',dtype = [('shop','S50'),('sales','float')],encoding='utf-8')
sorted_data = np.sort(data,order='sales')[::-1]
print(sorted_data)