题解 | #评选优秀店铺#

评选优秀店铺

https://www.nowcoder.com/practice/8773091cfb2d4b00a03c89caa9dc5634

import numpy as np 
dt = np.dtype([('name','S10'),('money',float)])
narray = np.loadtxt('Shop.csv',delimiter=',',dtype=dt)
excellent = np.where(narray['money']>=1000000)
print(narray['name'][excellent])

全部评论

相关推荐

评论
点赞
收藏
分享

创作者周榜

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