摘要:
需要安装这个 pymysql 写法还是很简单的# -*- coding: utf-8 -*- # Define your item pipelines here # # Don't forget to add your pipeline to the ITEM_PIPELINES setting # See: https://doc.scrapy.org/en/latest/topics/it... 阅读全文
摘要:
1.map(f,list) 2.reduce(f,list) 3.filter(f,list) 4.sorted(list,cmp) 如果 x 应该排在 y 的前面,返回 -1,如果 x 应该排在 y 的后面,返回 1。如果 x 和 y 相等,返回 0 5.返回函数 6.像这种内层函数引用了外层函数的变量(参数也算变量),然后返回内层函数的情况,称为闭包(Closure)。闭包的特点是返回的... 阅读全文