newresult=regecommpile.subn(newstr,subject) 返回的是一个元组,一般取第一个,即为newresult[0] 转载于:https://www.cnblogs.com/itfenqing/archive/2011/08/12/4429536.html