Skip to content

循环生成下载文件,下载下来的都是最新的那个,变量的问题? #413

Answered by wang0618
Deweiwei asked this question in Q&A
Discussion options

You must be logged in to vote

lambda: download(FileName, content2) 应该改成 lambda FileName=FileName,content2=content2: download(FileName, content2), 或者 functools.partital(download, FileName, content2)

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@Deweiwei
Comment options

Comment options

You must be logged in to vote
1 reply
@Deweiwei
Comment options

Answer selected by Deweiwei
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants