Germey %!s(int64=9) %!d(string=hai) anos
pai
achega
154dc2494f
Modificáronse 1 ficheiros con 5 adicións e 1 borrados
  1. 5 1
      proxypool/getter.py

+ 5 - 1
proxypool/getter.py

@@ -3,7 +3,11 @@ from pyquery import PyQuery as pq
 
 
 class ProxyMetaclass(type):
-
+    """
+        元类,在FreeProxyGetter类中加入
+        __CrawlFunc__和__CrawlFuncCount__
+        两个参数,分别表示爬虫函数,和爬虫函数的数量。
+    """
     def __new__(cls, name, bases, attrs):
         count = 0
         attrs['__CrawlFunc__'] = []