jakeyfly
V2EX  ›  问与答

像元类的使用 是否是提倡的用法 昨天看到 IP 代理池里用元类实现的爬虫集,感觉很奇特,但是不好理解

  •  
  •   jakeyfly · Mar 10, 2018 · 1151 views
    This topic created in 2984 days ago, the information mentioned may be changed or developed.

    https://github.com/Germey/ProxyPool/blob/master/proxypool/getter.py 在 github 上搜到的

    看懂了后 感觉 是个很好的处理和扩展方法。

    但是元类的真的不好懂,除了用元类,有没有别的方式可以实现这种迭代与易扩展方式

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