python3学习手册reverse() # 反转列表,头变尾,尾变头 del listxx[1:3] # 切割操作,删除列表的这一段,含头不含尾 newlist = sorted(listxx) # 返回新列表,且排好序了,升序,原 listxx不变 ②set数据操作(无序,数值不重复) ★若在创建set时,有多个重复的元素,则只会存储其一,元素只能是 函数用于将一个可遍历的数据对象(如列表、元组或字符 串)组合为一个索引序列,同时列出下标和数据,一般用在 for 循环当 中 slice() 函数实现切片对象,主要用在切片操作函数里的参数传递 sorted() 函 数 对 所 有 可 迭 代 的 对 象 进 行 排 序 操 作 , 默 认 升 序 , reverse=True则降序,返回新的list;list 的 sort 方法返回的是对已经存 在的列表进行操作 canvas = tkinter.Canvas(window, width=480, height=320) # 创建画布组件 canvas.pack() canvas.bind('Motion>', move) window.mainloop() # 运行窗口主循环 显示效果: ★Entry单行文本输入框 条目组件用于在应用程序中添加单行文本输入框,条目组件可以与一 0 码力 | 213 页 | 3.53 MB | 1 年前3
Scrapy 1.0 Documentationcom/questions/11227809/why-is-processing-a-sorted- ˓→array-faster-than-an-unsorted-array", "tags": ["java", "c++", "performance", "optimization"], "title": "Why is processing a sorted array faster than an unsorted DOWNLOADER_MIDDLEWARES_BASE setting de- fined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine SPIDER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine0 码力 | 244 页 | 1.05 MB | 1 年前3
Scrapy 1.2 DocumentationDOWNLOADER_MIDDLEWARES_BASE setting de- fined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine SPIDER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine EXTENSIONS_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled extensions. As extensions typically do not depend on each other0 码力 | 266 页 | 1.10 MB | 1 年前3
Scrapy 1.1 DocumentationDOWNLOADER_MIDDLEWARES_BASE setting de- fined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine SPIDER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine EXTENSIONS_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled extensions. As extensions typically do not depend on each other0 码力 | 260 页 | 1.12 MB | 1 年前3
Scrapy 1.0 Documentationcom/questions/11227809/why-is- processing-a-sorted-array-faster-than-an-unsorted-array", "tags": ["java", "c++", "performance", "optimization"], "title": "Why is processing a sorted array faster than an unsorted DOWNLOADER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine SPIDER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine0 码力 | 303 页 | 533.88 KB | 1 年前3
Scrapy 1.3 DocumentationDOWNLOADER_MIDDLEWARES_BASE setting de- fined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine SPIDER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine EXTENSIONS_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled extensions. As extensions typically do not depend on each other0 码力 | 272 页 | 1.11 MB | 1 年前3
Scrapy 1.1 DocumentationDOWNLOADER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine SPIDER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine EXTENSIONS_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled extensions. As extensions typically do not depend on each other0 码力 | 322 页 | 582.29 KB | 1 年前3
Scrapy 1.5 DocumentationDOWNLOADER_MIDDLEWARES_BASE setting de- fined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine SPIDER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine EXTENSIONS_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled extensions. As extensions typically do not depend on each other0 码力 | 285 页 | 1.17 MB | 1 年前3
Scrapy 1.6 DocumentationDOWNLOADER_MIDDLEWARES_BASE setting de- fined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine SPIDER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine EXTENSIONS_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled extensions. As extensions typically do not depend on each other0 码力 | 295 页 | 1.18 MB | 1 年前3
Scrapy 1.2 DocumentationDOWNLOADER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine SPIDER_MIDDLEWARES_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled middlewares: the first middleware is the one closer to the engine EXTENSIONS_BASE setting defined in Scrapy (and not meant to be overridden) and then sorted by order to get the final sorted list of enabled extensions. As extensions typically do not depend on each other0 码力 | 330 页 | 548.25 KB | 1 年前3
共 296 条
- 1
- 2
- 3
- 4
- 5
- 6
- 30













