当我尝试下面的代码时,我遇到了上述错误。有谁可以帮助我?
import numpy as n
gcode=open('123.txt','r')
lines=gcode.readlines()
a=len(lines)
m=n.zeros((a,7))
for line in lines:
i=0
j=0
for word in line:
if word!=str(' '):
m[i][j]=str(m[i][j])+str(word)
else:
j+=1
i+=1