#生成十个文件从1M到10M
for i in range(1,11):
with open(str(i)+"M.txt","w") as f:
f.write(i*1024 * 1024 * '0')
转载于:https://blog.51cto.com/yaohuayong/1910333
#生成十个文件从1M到10M
for i in range(1,11):
with open(str(i)+"M.txt","w") as f:
f.write(i*1024 * 1024 * '0')
转载于:https://blog.51cto.com/yaohuayong/1910333