Leer el archivo csv de python [duplicar]

Esta pregunta ya tiene una respuesta aquí:

¿Cómo leo y escribo archivos CSV con Python? 3 respuestas

Tuve algunos datos en el archivo de Excel. Cambié el archivo a archivo .csv e intenté escribir un código de Python para leer el archivo.

Pero estoy obteniendo algunos resultados impredecibles. Mi código es así:

INPUT_DIR = os.path.join(os.getcwd(),"Input")
OUTPUT_DIR = os.path.join(os.getcwd(),"Output")
print INPUT_DIR, OUTPUT_DIR 

def read_csv():    
    files = os.listdir(INPUT_DIR)
    for file in files:
        file_full_name = os.path.join(INPUT_DIR,file)
        print file_full_name
        f = open(file_full_name,'r')
        for line in f.readlines():
            print "Line: ", line

def create_sql_file():
    print "Hi"


if __name__ == '__main__':
    read_csv()
    create_sql_file()

Esto da una salida muy peculiar:

 C:\calcWorkspace\13.1.1.0\PythonTest\src\Input C:\calcWorkspace\13.1.1.0\PythonTest\src\Output
C:\calcWorkspace\13.1.1.0\PythonTest\src\Input\Country Risk System Priority Data_01232013 - Copy.csv
Line:  PK**

¿Alguien sabe de este problema?

Respuestas a la pregunta(1)

Su respuesta a la pregunta