How to open local file on Jupyter?

前端 未结 9 1739
星月不相逢
星月不相逢 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:41

    Are you running this on Windows or Linux? If you're on Windows,then you should be use a path like C:\\Users\\apple\\Downloads\train.csv . If you're on Linux, then you can follow the same path.

提交回复
热议问题