def swap(self, infile):
        '''Swap: 任意の箇所のバイト列と 他の任意の箇所のバイト列を入れ換える
        '''
        gf = infile[31:]
        index = gf.index(random.choice(gf))
        another = gf.index(random.choice(gf))
        gf[index], gf[another] = gf[another], gf[index]
        return infile[:31] + gf
def swap ( self , infile ) : gf = infile [ 31 : ] index = gf . index ( random . choice ( gf ) ) another = gf . index ( random . choice ( gf ) ) gf [ index ] , gf [ another ] = gf [ another ] , gf [ index ] return infile [ : 31 ] + gf
Swap: 任意の箇所のバイト列と 他の任意の箇所のバイト列を入れ換える