将参数传递给看门狗的on_modified函数

问题描述

我希望看门狗观察文件夹是否有任何更改。如果发生更改,我想将文件复制到预先指定的位置。

到目前为止,我所拥有的代码可以很好地监视目录,但是我不知道如何将事件以外的其他变量正确地传递给我的set(Boost_USE_STATIC_LIBS ON) find_package(Boost required COMPONENTS RANDOM) include_directories(${Boost_INCLUDE_Dirs}) target_link_libraries(myfile PRIVATE ${Boost_LIBRARIES} ) 函数

这是我现在拥有的代码

from docx import Document
from docx.shared import Pt

document = Document()
p = document.add_paragraph()
title = p.add_run('Paragraph at the last line')
font = title.font
font.name = 'Calibri'
font.bold = True
font.size = Pt(55)
document.save("document.docx")

最让我困惑的那一行是on_modified()。分配的方法没有方括号,没有参数。所以我什至不知道应该在哪里添加它们

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)