Fra: tutor-bounces+tommy.kaas=kaasogmulvad...@python.org
[mailto:tutor-bounces+tommy.kaas=kaasogmulvad...@python.org] På vegne af
Susana Iraiis Delgado Rodriguez
Sendt: 28. marts 2011 17:12
Til: tutor@python.org
Emne: [Tutor] Write new line(enter) in txt

 

Hello list!!

This is a very simple question!! I want to write some lines in a txt file,
but my output looks like this:
No existe el archivo C:\índice.dbfNo existe el archivo C:\índice_dwg.dbfNo
existe el archivo C:\índice_raster.dbf
I need it to look like this:
No existe el archivo C:\índice.dbf
No existe el archivo C:\índice_dwg.dbf
No existe el archivo C:\índice_raster.dbf

…
                else:
                        log.write('No existe el archivo ' +shx+"\n")
                if os.path.exists(dbf):
                        print 'El archivo ' +dbf +' existe'
                else:
                        log.write('No existe el archivo ' +dbf+"\n")
log.close()

 

Try: ”\r\n” 

Tommy

_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor

Reply via email to