(tablename,props,prere)
return sqlstr
遍历所要修改的属性，以生成sql语句
遍历所要修改的属性，以生成sql语句
遍历所要修改的属性，以生成sql语句
def forEachUpdateProps(tablename,props,prere):
    '''遍历所要修改的属性，以生成sql语句'''
    assert isinstance(props, dict)
    pro = FormatUpdateStr(props)
    pre = FormatCondition(prere)
    sqlstr = """UPDATE `%s` SET %s WHERE %s;"""%(tablename,pro,pre) 
    return sqlstr
def forEachUpdateProps ( tablename , props , prere ) : assert isinstance ( props , dict ) pro = FormatUpdateStr ( props ) pre = FormatCondition ( prere ) sqlstr = """UPDATE `%s` SET %s WHERE %s;""" % ( tablename , pro , pre ) return sqlstr