00-Python Archivos-Sept03
00-Python Archivos-Sept03
n File
operations
n Reading content
n Writing content
n Thefile workflow
n Open the file
n Read/write content
n Close the file
+ Reading Files - Technique 1
+ Reading Files – Technique 2
§ CSV files
§ Easy to read and write!
§ Easy to share!
+ CSV files in Python
§ To read (cvs) files you can simply loop over the lines and use
split method to get individual columns.
CSV
+ A Simple Example