码迷,mamicode.com
首页 >  
搜索关键字:value    ( 37865个结果
项目方法汇总
带头信息到 明细 ...
分类:其他好文   时间:2018-01-14 00:53:39    阅读次数:270
【剑指offer】Java实现
面试题3 二维数组中的查找 Leetcode--74 Search a 2D Matrix 1 /*Java 2 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has th ...
分类:编程语言   时间:2018-01-13 23:54:04    阅读次数:387
异常处理
# 程序一旦发生错误,就从错误的位置停下来了,不在继续执行后面的内容# 使用try和except就能处理异常 #try是我们需要处理的代码 #except 后面跟一个错误类型 当代码发生错误且错误类型符合的时候 就会执行except中的代码 #except支持多分支 #有没有一个能处理所有错误的类型 ...
分类:其他好文   时间:2018-01-13 23:53:15    阅读次数:216
python之请求报文对比(假定最多二维字典)
两段请求报文,判断不一样的key和value,只判断d2里和d1不同的值,和全部不同的key 方法一的需求分析: 1. 循环d1的key,通过key去d2里取值,取不到的就是d2中不存在这个key,d2与d1里不一样的key 2. 判断通过key取值的类型,如果是dict类型的继续循环 3. 把d1 ...
分类:编程语言   时间:2018-01-13 23:38:24    阅读次数:263
[leetcode]Binary Search-35. Search Insert Position
iven a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in ord ...
分类:其他好文   时间:2018-01-13 21:03:00    阅读次数:148
bean工厂和ApplicationContext
获取bean的两种方法 1. 从applicationcontext 应用上下文容器中获取 2. 从bean 工厂获取 bean 的区别 使用ApplicationContext 获取bean的例子 我们定义一个Student 类,然后让spring去调用它 Student.java package ...
分类:移动开发   时间:2018-01-13 21:01:35    阅读次数:222
mongoDB查询数据
查询数据使用db.表名.find()查询数据 如果不指定条件时则默认查询所有例如 > db.noPK.find() { "_id" : ObjectId("5a50642b908e6b07a84472a2"), "name" : "javascript", "value" : "vue.js" } ...
分类:数据库   时间:2018-01-13 20:54:41    阅读次数:213
[leetcode]Reservoir Sampling-382. Linked List Random Node
Given a singly linked list, return a random node's value from the linked list. Each node must have the same probability of being chosen. Follow up:Wha ...
分类:其他好文   时间:2018-01-13 20:49:35    阅读次数:188
[leetcode]Breadth-first Search-690. Employee Importance
You are given a data structure of employee information, which includes the employee's unique id, his importance value and his directsubordinates' id. ...
分类:其他好文   时间:2018-01-13 20:40:38    阅读次数:124
mongoDB 插入数据
使用db.表名.insert() 插入数据 无需关系表名是否存在,也没有字段名的限制 例如: db.mytable.insert({"_id": 1, "name": "java"}) db.mytable.insert({"name": "java", value: "spring"}) 我们还可 ...
分类:数据库   时间:2018-01-13 20:40:13    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!