#!/usr/bin/python
import random
file_object = open('file_01.txt','w')
x=1
while x<=1000000:
text=random.randint(1, 100000000)
file_object.write(str(text)+'\n')
x+=1
file_object.close()
#!/usr/bin/python
import random
file_object = open('file_01.txt','w')
x=1
while x<=1000000:
text=random.randint(1, 100000000)
file_object.write(str(text)+'\n')
x+=1
file_object.close()
转载于:https://www.cnblogs.com/notedd/archive/2011/12/19/2293162.html