jakeyfly
V2EX  ›  问与答

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

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

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

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

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