摘要: import re def removeComments(string): pattern = r"(\".*?\"|\'.*?\')|((?s)/\*.*?\*/)|(//[^\r\n]*$)" regex = re.compile(pattern, re.MULTILINE | re.DOTAL 阅读全文
posted @ 2023-02-22 21:54 雷雷提 阅读(44) 评论(0) 推荐(0) 编辑