<p> 课程地址: http://www.icourse8.com/python_shousuoyiqiang.html </p>
第 1 章课程介绍
第 2 章 Windows 下搭建开发环境
第 3 章 爬虫基础知识回顾
第 4 章 scrapy 爬取知名技术文章网站
第 5 章 scrapy 爬取知名问答网站
第 6 章 通过 CrawlSpider 对招聘网站进行整站爬取
第 7 章 Scrapy 突破反爬虫的限制
第 8 章 scrapy 进阶开发
第 9 章 scrapy-Redis 分布式爬虫
第 10 章 Elasticsearch 搜索引擎的使用
第 11 章 django 搭建搜索网站
第 12 章 scrapyd 部署 scrapy 爬虫
第 13 章 课程总结
- class Solution:
- def twoSum(self, nums, target):
- """
- :type nums: List[int]
- :type target: int
- :rtype: List[int]
- """
- hashmap = {}
- for index, num in enumerate(nums):
- another_num = target - num
- if another_num in hashmap:
- return [hashmap[another_num], index]
- hashmap[num] = index
- return None
来源: http://www.bubuko.com/infodetail-3068864.html