python opens text file with a space between every character

前端 未结 8 1599
野性不改
野性不改 2021-02-18 17:27

Whenever I try to open a .csv file with the python command fread = open(\'input.csv\', \'r\') it always opens the file with spaces between every single character.

8条回答
  •  旧巷少年郎
    2021-02-18 17:44

    Isn't csv a simple txt file with values separated with comma. Just try to open it with a text editor to see if the file is correctly formed.

提交回复
热议问题