从PDF文件中提取数据JAY.LIN 收录于 Python 2025-03-16 约 146 字 预计阅读 1 分钟 目录 笔记从PDF文件中提取数据笔记 import pdfplumber # 打开PDF文件 with pdfplumber.open('数学公式.pdf') as pdf: for i in pdf.pages: # 遍历页 print(i.extract_text()) # extract_text()方法提取内容 print(f'---------第{i.page_number}页结束---------')Please enable JavaScript to view the comments powered by Giscus.