_Skylar_的博客存储路径正确但读取时报错:FileNotFoundError: [Errno 2] No such file or directory 直接使用相对路径 f=open(‘xiguadata.txt’,encoding=‘UTF-8’)时报错 改用绝对路径 f=open(“C:/Users/1/xiguadata.txt”,...
李婧Amy的博客def main():fh = open('lines.txt')for line in fh.readlines():print(line)if __name__ == "__main__": main()DirectoryfilesI am on for-working.py file, and am trying to access the lines.txt file within th...
「已注销」的博客 [Errno 2] No such file or directory: './mnist_image_label/mnist_train_jpg_60000.txt' 这个没有查找到子文件或者子文件夹的问题 2. 解决方法 首先,确定所写的路径中包含相应的文件夹或者文件。 其次,如果文件...