码迷,mamicode.com
首页 >  
搜索关键字:integer    ( 14932个结果
Json Schema Validator用法(Python示例)
# 导入验证器 from jsonschema import validate # 编写schema: my_schema = { "$schema": "http://json-schema.org/draft-04/schema#", "title": "TestInfo", "descript ...
分类:编程语言   时间:2020-06-24 21:23:43    阅读次数:93
Lambda和Stream基础
Java方法分为实例方法和静态方法 实例方法 1 /*实例方法*/ 2 public final class Integer{ 3 boolean equals(Object o){ 4 ... 5 } 6 } 7 8 9 /*静态方法*/ 10 public final class Integer ...
分类:其他好文   时间:2020-06-24 19:53:56    阅读次数:85
leetcode 841:钥匙和房间
import java.util.*; /** * @Class CanVisitAllRooms * @Description 841. 钥匙和房间 * 有 N 个房间,开始时你位于 0 号房间。每个房间有不同的号码:0,1,2,...,N-1, * 并且房间里可能有一些钥匙能使你进入下一个房间。 ...
分类:其他好文   时间:2020-06-24 16:10:15    阅读次数:41
解决Java中生成二级菜单栏JSON数据格式
1.生成实体类 2.生成JSON数据格式的方法 //存返回数据 List<Menus> totaltype = new ArrayList<>(); //使用map来装前面查到的所有数据 Map<Integer, Menus> map = new HashMap<>(); for (Menus p: ...
分类:编程语言   时间:2020-06-24 11:50:57    阅读次数:95
层序遍历
什么是层序遍历层序遍历就是从上到下按层打印二叉树,同一层结点从左至右输出。每一层输出一行。例如这样一个二叉树:[3,9,20,null,null,15,7]返回结果为:代码实现:ArrayList<ArrayList<Integer>>Print(TreeNodepRoot){ArrayList<ArrayList<Integer>>res=newA
分类:其他好文   时间:2020-06-24 09:15:25    阅读次数:55
java记录(1)
仅做个人记录使用 ###1、一个object对象有对应的hashCode值,重写了toString方法如何知道hashCode值? object原生的toString()方法:返回单前对象的类名及hash值。相当于getClass().getName() + '@' + Integer.toHexS ...
分类:编程语言   时间:2020-06-23 21:25:18    阅读次数:46
Delphi XE IdTCPClient1 和 IdTCPServer1 数据的发送与接收(indy10)
Delphi XE IdTCPClient1 和 IdTCPServer1 数据的发送与接收(indy10) 1、IdTCPClient1 端 发送数据 1.1 发送结构体: //定义结构体 TMData = record id:Integer; Name:Array[0..20] of Char; ...
分类:Windows程序   时间:2020-06-23 15:20:12    阅读次数:270
C++ lambda表达式
为什么要lambda函数 匿名函数是许多编程语言都支持的概念,有函数体,没有函数名。1958年,lisp首先采用匿名函数,匿名函数最常用的是作为回调函数的值。正因为有这样的需求,c++引入了lambda 函数,你可以在你的源码中内联一个lambda函数,这就使得创建快速的,一次性的函数变得简单了。例 ...
分类:编程语言   时间:2020-06-23 13:37:17    阅读次数:56
使用配置文件的方式整合MyBatis
(1)创建一个用于对数据库表t_article数据操作的接口ArticleMapper ```java @Mapper public interface ArticleMapper { public Article selectArticle(Integer id); } ``` (2)创建XML映 ...
分类:其他好文   时间:2020-06-23 13:11:10    阅读次数:45
【leetcode】1486. XOR Operation in an Array
题目如下: Given an integer n and an integer start. Define an array nums where nums[i] = start + 2*i (0-indexed) and n == nums.length. Return the bitwise X ...
分类:其他好文   时间:2020-06-22 15:49:58    阅读次数:98
14932条   上一页 1 ... 44 45 46 47 48 ... 1494 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!