readdata.py 242 B

12345678910111213
  1. import codecs
  2. import numpy
  3. price_ary=[]
  4. fr=codecs.open('c:/tmp/hour.csv','r','utf-8')
  5. lines=fr.readlines()
  6. fr.close()
  7. for l in lines[1:]:
  8. elmts=l.split('\t')
  9. val=int(float(elmts[5])*10000)
  10. price_ary.append(val)
  11. print(price_ary)