from PyPDF2.errors import PdfReadError 应该这样写 def read_pdf(filename):try:filepath = os.path.join(pdf_files_path, filename)with open(fi...