jakeyfly
V2EX  ›  问与答

Python 里面的类装饰器 可以保存壮态或数据,那是不是可以写一个装饰器用来判断数据是否更新?

  •  
  •   jakeyfly · Jun 4, 2018 · 1315 views
    This topic created in 2958 days ago, the information mentioned may be changed or developed.

    这应该是可以的吧????

    那如果 有一百个任务要判断是否数据变化,装饰器跟 像类的实例那样,互相不干扰吗

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 22:58 · PVG 06:58 · LAX 15:58 · JFK 18:58
    ♥ Do have faith in what you're doing.