当您致电时
s3.upload_file
您正在通过
temp_file_path
temp_output_path
循环中编写当前页面的地方。
我建议使用更多描述性变量名称来帮助避免使用类似的通用变量名称易于错过的问题。考虑重新命名
for
到
,然后
downloaded_pdf_path