def create_txt(file_path):
for i in range(100, 299):
file_full_name = file_path + '/mix_' + str(i) + '.txt'
file = open(file_full_name, 'w')
file.close()
create_txt(r'I:\forest\hive_mix\labels')
[Crear archivos txt por lotes]
Supongo que te gusta
Origin blog.csdn.net/qq_38253797/article/details/122395438
Recomendado
Clasificación