-
我基于一个excel生成一个多word的下载,每有一个特定地址生成一个word 供下载。但是执行之后,生成多个申请表,点任意一个下载下来的都是最新的生成文件。查看了服务器,对应的文件都有生成,是不是因为变量在循环之后变成了最后一个呢?请问有好的解决循环内下面生成文件的解决方案嘛? |
Beta Was this translation helpful? Give feedback.
Answered by
wang0618
May 23, 2022
Replies: 2 comments 2 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Deweiwei
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
lambda: download(FileName, content2)
应该改成lambda FileName=FileName,content2=content2: download(FileName, content2)
, 或者functools.partital(download, FileName, content2)