pymongo.errors.CursorNotFound: Cursor not found 故事背景:先从数据库中取得所有数据 db['test'].find(),然后对结果进行for循环,但是当do_something函数耗时过长,在cursor上长时间没有进行操作,引发cursor在mong ...
分类:
其他好文 时间:
2019-09-24 12:30:14
阅读次数:
106
原文链接:https://blog.csdn.net/liuyongvs2009/article/details/42454779 这里简单对其重复的方法做点简单的区分。 offer,add区别: 一些队列有大小限制,因此如果想在一个满的队列中加入一个新项,多出的项就会被拒绝。 这时新的 offer ...
分类:
编程语言 时间:
2019-09-24 12:03:49
阅读次数:
95
Given a collection of distinct integers, return all possible permutations. Example: Solution 2: ...
分类:
其他好文 时间:
2019-09-22 23:11:46
阅读次数:
105
前面两篇文章我们介绍了如何快速创建一个 Spring Boot 工程 "《Spring Boot(一):快速开始》" 和在 Spring Boot 中如何使用模版引擎 Thymeleaf 渲染一个Web页面 "《Spring Boot (二):模版引擎 Thymeleaf 渲染 Web 页面》" , ...
分类:
编程语言 时间:
2019-09-22 11:11:11
阅读次数:
95
参考文章: Java HashMap工作原理及实现 https://yikun.github.io/2015/04/01/Java-HashMap%E5%B7%A5%E4%BD%9C%E5%8E%9F%E7%90%86%E5%8F%8A%E5%AE%9E%E7%8E%B0/ JavaGuide之Ha ...
分类:
编程语言 时间:
2019-09-21 10:47:44
阅读次数:
98
Collecting MySQL-python==1.2.5 (from -r requirementsNoGit.txt (line 9)) Using cached https://files.pythonhosted.org/packages/a5/e9/51b544da85a36a68deb ...
分类:
数据库 时间:
2019-09-20 20:48:01
阅读次数:
92
//需要引用命名空间 using System.Drawing; using System.Drawing.Text; //获取系统字体方法 public dynamic GetFontNames() { FontFamily[] fontFamilies; InstalledFontCollect... ...
分类:
其他好文 时间:
2019-09-17 19:20:49
阅读次数:
85
JYaml—— Yaml的Java实现 JYaml支持的数据类型: 原始数据类型和封装类(int,java.lang.Integer) JavaBean兼容对象(结构支持) collection(sequence支持) List Set Map(map支持) Arrays(sequence支持) B ...
分类:
编程语言 时间:
2019-09-15 23:57:42
阅读次数:
184
`java.util.concurrent` 简介 处理方法 方法描述 | 抛出异常 | 返回特殊的值 | 一直阻塞 | 超时退出 : :|: :|: :|: :|: : 插入数据 | add(e) | offer(e) | put(e) | offer(e,time,unit) 获取并移除队列的头 ...
分类:
其他好文 时间:
2019-09-14 14:17:46
阅读次数:
96
列表生成式 >>> print(range(10)) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] >>> print(range(10)) range(0, 10) 以上可见python2中,等于是创建了两个列表,比python3中,增加了内存消耗,python3中的优化 生成器g ...
分类:
其他好文 时间:
2019-09-13 13:00:57
阅读次数:
54