jakeyfly
V2EX  ›  问与答

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

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

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

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

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