摘要:
1 from random import Random 2 3 def random_str(randomlength): 4 str = '' 5 chars = '0123456789-.qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM' 6 length = len(chars) - ... 阅读全文
摘要:
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)) 阅读全文