go-fastdfs/gen_file.py
2019-04-03 09:59:34 +08:00

10 lines
200 B
Python

# -*- coding: utf-8 -*-
import os
j=0
for i in range(0,1000000):
if i%1000==0:
j=i
os.system('mkdir -p %s'%(i))
with open('%s/%s.txt'%(j,i),'w+') as f:
f.write(str(i))