摘要: 1 from random import Random 2 3 def random_str(randomlength): 4 str = '' 5 chars = '0123456789-.qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM' 6 length = len(chars) - ... 阅读全文
posted @ 2016-03-29 18:38 Joelwang 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1 #!/usr/bin/env python 2 #-*- coding:utf-8 -*- 3 import os 4 5 with open("abc.txt", "w") as f: 6 f.write(os.urandom(1024*1024*10)) 阅读全文
posted @ 2016-03-29 18:35 Joelwang 阅读(616) 评论(0) 推荐(0) 编辑