#!/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: ools1.exe" print len(strlist) def makestr(): """ make random strs """ fobj = open(r"D: estmohu6.txt","wb") fshort = open(r"D: estmohu5.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()