obj_spider = SpiderMain() 这句话什么作用?
if __name__ == "__main__": root_url = "https://baike.baidu.com/item/Python/407313?fr=aladdin" obj_spider = SpiderMain() obj_spider.craw(root_url)
if __name__ == "__main__": root_url = "https://baike.baidu.com/item/Python/407313?fr=aladdin" obj_spider = SpiderMain() obj_spider.craw(root_url)
2018-08-05
举报