题解 | 店铺销售的排名

店铺销售的排名

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)

全部评论

相关推荐

给🐭🐭个面试机会...:我擦seed✌🏻
点赞 评论 收藏
分享
评论
点赞
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务