展开全部#coding:gb18030 no=0 total=0 for record in open('the_file.cvs','r').readlines(): no+1 if no=30: p1,p2,p3,p4=record.split(',')#supposed the limiter of cvs ** ','.if not,replace ',' with real one. total+float(p4) elif no>10030: break print '**erage of column e:',total/no 20210311