擅长:python、mysql、java
<p>这本词典很好,谢谢。不过,我最终选择了这种方法:</p>
<pre><code>for link in newLinks: #check every link in 'newLinks'
if link not in toCrawl: #if the link is not in 'toCrawl'...
toCrawl.append([link,depthFound+1]) #add the link to 'toCrawl' with the 'depthFound'
</code></pre>