How to open local file on Jupyter?

前端 未结 9 1798
星月不相逢
星月不相逢 2020-12-10 13:08

In[1]:

path=\'/Users/apple/Downloads/train.csv\'
open(path).readline()

Out[1]:

FileNotFoundError                         Tr         


        
9条回答
  •  忘掉有多难
    2020-12-10 13:18

    simple way is to move your files to be read under the same folder of your python file, then you just need to use the name of the file, without calling another path.

提交回复
热议问题