import re ## 去掉 details 标签内容 def main(text: str) -> dict: result = re.sub(r'<details.*?>.*?</details>', '', text, flags=re.DOTALL) return {