diff --git a/replace_comments.py b/replace_comments.py new file mode 100644 index 000000000..53da7acdf --- /dev/null +++ b/replace_comments.py @@ -0,0 +1,170 @@ +#!/usr/bin/env python3 +# -*- coding: utf-8 -*- + +import os +import argparse + +# 定义要查找和替换的注释内容 +# 使用原始字符串数组,支持多个旧内容,避免Unicode转义问题 +OLD_COMMENTS = [ + r""" + 0 else "未找到匹配的文件") + +if __name__ == "__main__": + main() \ No newline at end of file