Python讀取,寫入,保存txt文件

文件夾1: 文件夾2: mnist11.txt 讀取的三種方法 方法一:web f=open('文件夾1/文件夾2/mnist11.txt') print(f.read()) 方法二:svg import os.path data_dir=os.path.join('文件夾1','文件夾2') txt_dir=os.path.join(data_dir+'mnist11.txt') f
相關文章
相關標籤/搜索