#!/usr/bin/env python
#coding:utf-8
# Author:  xiaobaichuangtianxia --<>
# Purpose: 生成模糊测试语料
# Created: 2016/6/22
import time
import sys
import subprocess

strlist = ['a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','~','!','@',
           '#','$','%','^','&','*','(',')','[',']','{','}',':',';','"','?','/','<','>','.',',','|','\\','·','、','+','=','_','-','?',
           '《','》',"'"]

qaexepath = r"D:\tools\1.exe"

print len(strlist)

def makestr():
    """
    make random strs
    """
    fobj = open(r"D:\test\mohu\6.txt","wb")
    fshort = open(r"D:\test\mohu\5.txt","rb")
    
    line = fshort.readline()
    
    while line:
    
        for i in strlist:
    
                fobj.writelines(i+line)
        line = fshort.readline()
                
    fobj.close
    fshort.close
                







if __name__=='__main__':
    makestr()
    #product_file()
        

  

posted on 2017-03-21 11:10  小白闯天下  阅读(245)  评论(0编辑  收藏  举报