CrLf 当前离线
论坛巡查
ts = open("d:\\a.txt") str = ts.read() import re reobj = re.compile(r"^(.)(.*)\1",re.M) print(reobj.sub(r"\1\2",str))复制代码
TOP