摘要: import re import json def replace_newlines(match): # 在匹配的字符串中替换 \n 和 \r return match.group(0).replace('\n', '\\n').replace('\r', '\\r') def clean_json 阅读全文
posted @ 2024-01-31 09:35 小小咸鱼YwY 阅读(168) 评论(0) 推荐(0) 编辑