<doocs>0752.Open the Lock_1.py
def next(s):
    res = []
    s = list(s)
    for i in range(4):
        c = s[i]
        s[i] = '9' if c == '0' else str(int(c) - 1)
        res.append(''.join(s))
        s[i] = '0' if c == '9' else str(int(c) + 1)
        res.append(''.join(s))
        s[i] = c
    return res
def sample_funcname ( var_0 ) :
    var_1 = [ ]
    var_0 = list ( var_0 )
    for var_5 in range ( 4 ) :
        var_6 = var_0 [ var_5 ]
        var_0 [ var_5 ] = '9' if var_6 == '0' else str ( int ( var_6 ) - 1 )
        var_1.append ( ''.join ( var_0 ) )
        var_0 [ var_5 ] = '0' if var_6 == '9' else str ( int ( var_6 ) + 1 )
        var_1.append ( ''.join ( var_0 ) )
        var_0 [ var_5 ] = var_6
    return var_1
