随笔分类 -  python

摘要:#!/usr/bin/pythonimport randomfile_object = open('file_01.txt','w')x=1while x<=1000000: text=random.randint(1, 100000000) file_object.write(str(text)+'\n') x+=1file_object.close() 阅读全文
posted @ 2011-12-19 12:30 notedd 阅读(179) 评论(0) 推荐(0)