l_found = dw_2.find("编号 = s_bbbh",1,dw_2.rowcount())
编号是列名,s_bbbh是变量
expression is not valid
------解决方案--------------------
编号是列标题吧,假设编号列对应的colname为bh
则dw_2.find("bh = " + s_bbbh,1,dw_2.rowcount())
如果bh列为字符型的,则dw_2.find("bh = '" + s_bbbh + "'",1,dw_2.rowcount())
如果你的列名确实为编号,就将上面的bh换成编号