with open('StockPrice.csv', 'wb') as f:
file_writer = csv.writer(f)
for s in newsymbolslist:
time = 102030
data = 895.233
array = [time], [data]
file_writer.writerow(array)
: , 'wb', ( ) . , , while-loop, .
, ( ).
, with-statement , , Python with-block. f.close() .