image.png

遇到这样的错误,解决办法有两种

1、文件的路径需要绝对路径

data_file = "D:/jupyter_notebook/promotion/pandas_exercise/country_data.npz"
2、将需要导入的文件路放到更目录下

image.png

然后就可以使用相对路径了

data_file = "country_data.npz"

如果想要和我交流,就关注我的微信公众号:梓栋Code

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐