Open the folder with Python

Use Python to read the folder, and then open the file

Following a read to each content file, and then add the path

import os
path = r'../Downloads/text/content'
for filename in os.listdir(path):
     print(os.path.join(path,filename))

Guess you like

Origin www.cnblogs.com/jly1/p/12074998.html