<qiyuangong>293_Flip_Game_1.py
def generatePossibleNextMoves( s):
    res = []
    if s is None or len(s) == 0:
        return res
    ls = len(s)
    for i in range(ls - 1):
        if s[i] == '+' and s[i + 1] == '+':
            res.append(s[:i] + '--' + s[i + 2:])
    return res
def sample_funcname ( var_0 ) :
    var_1 = [ ]
    if var_0 is None or len ( var_0 ) == 0 :
        return var_1
    var_5 = len ( var_0 )
    for var_8 in range ( var_5 - 1 ) :
        if var_0 [ var_8 ] == '+' and var_0 [ var_8 + 1 ] == '+' :
            var_1.append ( var_0 [ : var_8 ] + '--' + var_0 [ var_8 + 2 : ] )
    return var_1
