jakeyfly
V2EX  ›  问与答

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

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

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

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

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1306 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 733ms · UTC 17:24 · PVG 01:24 · LAX 10:24 · JFK 13:24
    ♥ Do have faith in what you're doing.