I have abc.txt file contains
0,1,0,1,1,....,1
I want to store these numbers in an array. This code is not working:
f=open('path/abc.txt') L = f.readlines()
for i in range(len(L)):
A.append(L[i])
Please help me.
![]() | 1 | initial version |
I have abc.txt file contains
0,1,0,1,1,....,1
I want to store these numbers in an array. This code is not working:
f=open('path/abc.txt') L = f.readlines()
for i in range(len(L)):
A.append(L[i])
Please help me.
![]() | 2 | None |
I have abc.txt a file contains abc.txt
containing:
0,1,0,1,1,....,1
0,1,0,1,1,...,1
I want to store these numbers in an array. array.
This code is not working:
f = open('path/abc.txt') L = f.readlines()
f=open('path/abc.txt') L = f.readlines()
for i in
range(len(L)):range(len(L)): A.append(L[i])
Please help me. me.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.