將多個txt文件中的內容寫在一個txt中的方法

import os filename='./train_data/img_' for i in range(1,19736): newfile=filename+str(i)+'.txt' if os.path.exists(newfile): read= open(newfile, 'r') for line in read:
相關文章
相關標籤/搜索