輸入OS
DEF new_txt():
b = os.getcwd() + '\\cut_D43_CODE\\data'
print(b)
if not os.path.exists(b):
os.makedirs(b)
for file in range(1000,1020):
open(b+str(file)+'.txt', "w")
もし名前 == ' メイン ':
new_txt()
輸入OS
DEF new_txt():
b = os.getcwd() + '\\cut_D43_CODE\\data'
print(b)
if not os.path.exists(b):
os.makedirs(b)
for file in range(1000,1020):
open(b+str(file)+'.txt', "w")
もし名前 == ' メイン ':
new_txt()