#生成十个文件从1M到10M

 

for i in range(1,11):
   

    with open(str(i)+"M.txt","w") as f:


        f.write(i*1024 * 1024 * '0')