import os
def new_txt():
    a1='实线'
    b = os.getcwd() + '\\fazhandadao_test_txt\\'
    if not os.path.exists(b):
        os.makedirs(b)
    for file in range(1000,1020):
        open(b+a1+str(file)+'.txt', "w")

if __name__ == '__main__':
    new_txt()

 

相关文章: