题解 | #程序员的工资统计#
程序员的工资统计
https://www.nowcoder.com/practice/cd9eba9631bb483fb30afe3fdf67b506
import sys ''' for line in sys.stdin: a = line.split() print(int(a[0]) + int(a[1])) ''' import numpy as np dt = np.genfromtxt('Salary.csv',delimiter=',', dtype=float) dvp = dt[...,0] alg = dt[...,1] test = dt[...,2] max = np.max(dt,axis=1) dif = np.max(dt,axis=0) - np.min(dt,axis=0) #print(1) print(max) print(dif)
一开始只做出第一问就给过了,后来在第一问前面print了一个错误结果才能继续做。。