From: Edin S. <edi...@gm...> - 2006-10-10 07:45:16
|
On 10/9/06, zh...@um... <zh...@um...> wrote: > I mean in the original data format, without any characters like "[]," > Thanks > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > Does this help: a = [[1, 2, 3], [4, 5, 6]] f = open("output.txt", "w") for row in a: f.write(" ".join(row)) f.write("\n") f.close() Check this also: http://effbot.org/librarybook/csv.htm HTH, Edin |