jakeyfly
V2EX  ›  问与答

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

  •  
  •   jakeyfly · Mar 10, 2018 · 1169 views
    This topic created in 2991 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   ·   3538 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 00:14 · PVG 08:14 · LAX 17:14 · JFK 20:14
    ♥ Do have faith in what you're doing.