文件读取
为什文件按行读取时英文逗号之后的不显示,汉语之后的显示,
是因为编码问题吗
result=[]
fd = open( "error.txt", "r" )
for line in fd.readlines():
line=line.strip('\n')
result.append(list(map(str,line.split(','))))
源文件:
error C2006: #include expected a filename, found 'identifier'
显示之后:error C2006: #include expected a filename