摘要: def test_extract_json(self): text = '{"a":"aaa","b":2}' prop = 'a' reg = f'"{prop}"' + r':["]?(.*?)["?|}|,]' print(reg) match = re.findall(reg, text)[ 阅读全文
posted @ 2019-10-13 20:07 天藐水瓶 阅读(85) 评论(0) 推荐(0) 编辑