jakeyfly
V2EX  ›  问与答

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

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

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

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

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