python - writing csv gives results splitted wrongly -
I am trying to write elements of a vector in a CSV file. These are the first 3 elements of the veeta, which are called quanasao (kwathoo is a code that has been started as quetao = {}):
An author Janika de administrative pubblica, 1 In order to know about the Uda PLA legislative constituent, 1989 Tratar da Organização do Estado, in 88 88, allows you to define official rules about you, you can know about your rights
I got this code Is printed with:
& gt; & Gt; ; & Gt; For I category (0,3): ... print prints [i]
But when I try to write in a CSV with the following code:
& gt; & Gt; & Gt; Oilyl = open ('teste.csv', "wb") & gt; & Gt; & Gt; Author = CSV Author (Offline, Delimiter = ';')> gt; & Gt; & Gt; For the range I (0, Lane (questao)): ... author. Author (questao [i])
I get the following output in test.csv (this is a sample, not from the above elements):
a; T; I t; U; L; One; ‡; Æ; O; ; G, E, N;,; R; I C, A; ; Day; ; A, d; Meter; I; N; I t; R, A; ‡; Æ; O; ; P; £; B; L; I c, a;;; ; U, A, D, A; , P, E, L, O; ; L, E, G, I of; L; A, D, O, R; C, o, n of k; I t; U, I, N, T, E; ; Day; ; 1, 9, 8, 8;,; ; One, o; T; R, A T, A, R; Would like to have one; , Hey, r, g, a; N; I; Z, one; ‡; Æ; O; ;Tax; , E of T, A, D; O;,; , P, a; R, A; , E, F, E, I T; O; ; Day; Of; U, J, E, I; ‡; Æ; O; ; D; O of; Key, E, Yu's; ; A t; O of; ; ...; ; O, B, E, D, I; N c; I, A; ; Day; ; D, et, e, r, meter, i, n, a; D; O of; ; P; R; I; N c; ¡; P; I; O of; ; F; U, N, D, A; Meter, e, n, t, one, i of; , E .; ; ...; ; O B Key, E, R, V; Ƒ; N c; I, A; ; Day; ; O; Yout; R, one of the; , E, x, i; G; N c; I, one of;;; ; R, E of T; R; I; ‡, e, e; ; O; U; ; L; I m; I T, A; ‡, e, e; ; One; L; I; ; D, E, C; L; I; N, one would like to, that of;;; ; One; B; R, A; N; G, E; , E .; ; One; L; C; One, n; ‡; One; ;
The code is output to the expected output if you iterate over a string in Python , You receive individual characters. You may be able to help with the article (according to the line), or perhaps after splitting by space, in either case, it should help:
mystring.split ( Str.split ("\ n"));
Or it may be that what you are after. (Sometimes \ r \ n. Someone may have a platform independent solution)
Comments
Post a Comment