Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: Python 属性更改侦听器模式
我是新手程序员。在我的程序中,我想不断检查是否对字典进行了任何更改。如果对字典进行了更改,我需要运行一些仅与更改相关的方法。有人可以向我解释可以与代码示例一起使用来完成它的各种技术。
“推送”和“轮询”有两种通用方法: