-
数据查找匹配定位相关用法整理
2021-07-10 18:46def get_sql_replace_keys(self,check_db): """ 正则获取需要替换的key,list :param check_db: :return: :type=list 需要替换的字段list [mobile_phone1,mobile_phone2] """ re_str = "#(\w.+?)#" key_list = re.findall(re_str,check_db) return key_list