python lambda使用样例 1、在字符串中的大写字母前插入’_’ str1 = 'proceedingNumber' field = re.sub(r"[A-Z]", lambda x: "_" + x.group(0), str1)