会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
notedd
博客园
首页
新随笔
联系
管理
订阅
随笔分类 -
python
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)
公告