"""
用途:将一个 PDF 文件按页拆分为多个 PDF 文件
注意事项:若报错 ModuleNotFoundError: No module named 'PyPDF2'
则需要先安装该模块。使用命令 “pip install PyPDF2” 安装即可
"""
import PyPDF2 # 需要先安装:pip/pip3 install PyPDF2
import os
root = r'C:\Users\liujieru\Documents\pdf' # 源文件所在的绝对路径
file_path = os.path.join(root, '组合.pdf')
pdf_file =