punc = string.punctuationre.sub(r'[%s]+'%punc,'',str(open('d:\a.txt','r').readlines()))执行完也不报错😿
收起
建议分步写,读取文件的字符串先打印看看
报告相同问题?