ICode9

精准搜索请尝试: 精确搜索
  • 智能合约开发-Solidity学习12022-09-12 18:30:51

    2. 编程开发 Solidity语言学习 // >=0.8.7 < 0.9.0 高于0.8.7小于0.9.0 // 分号; 结尾 pragma solidity 0.8.8; 1. 基础数据类型 // contract 关键字,告诉编译器后面的代码是来定义智能合约的 contract SimpleStorage{ // 数据类型 // boolean ,uint ,int,addres

  • 幸运的人一生都被童年治愈;不幸的人一生都在治愈童年。2022-09-07 01:00:18

    久留木玲|生活总是如此艰辛吗,还是只有童年才如此   阿尔弗雷德说“幸运的人一生都被童年治愈;不幸的人一生都在治愈童年。”  Psychologist Alfred Adler said, Unfortunate people are healing their childhood all their lives, and lucky people are healed by childhood all

  • Golang占位符2022-09-03 15:32:01

    有哪些占位符? 常见占位符 %T 类型占位符 %v 值占位符 %d 整数占位符 %f 浮点占位符 %c 字符占位符 %s 字符串的占位符 占位符类型 通用占位符 占位符 说明 举例 %v 获取数据的值 Printf(“%v”, people) %+v 获取数据的值,如果结构体,会携带字段名 Printf(“%+v”, peopl

  • Kotlin:内联函数let、also、with、run、apply2022-09-02 15:04:19

    Let 使用方法: // 作用1:使用it替代object对象去访问其公有的属性 & 方法 object.let{ it.todo() } // 作用2:判断object为null的操作 object?.let{//表示object不为null的条件下,才会去执行let函数体 it.todo() } // 注:返回值 = 最后一行 / return的表达式 示例: // 使用

  • 侯捷 内存管理 笔记pdf2022-08-31 11:01:24

    https://www.zhihu.com/people/xu-wei-duan-ke/posts         <<侯捷C++ 内存管理第二讲笔记(二) - 知乎.pdf>>     <<侯捷C++ 内存管理 第一讲 笔记 - 知乎.pdf>>     <<侯捷C++ 内存管理第二讲笔记(一) - 知乎.pdf>>     <<内存管理第三讲笔记 malloc_free(一) - 知乎.pdf

  • python基础-装饰器2022-08-29 20:03:40

    python基础-装饰器   什么是装饰器?   不改变函数原来的调用方式 动态地 给函数 添加功能   装饰器的原则是什么?   装饰器遵循: 开放 封闭原则 对添加新功能是开放的 硬改已经存在的代码 装饰器使用场景 装饰器一般用于动态添加功能,相当于对原来的函数进行扩展,py

  • cool2022-08-23 17:00:29

    Old English col "not warm" (but usually not as severe as cold), "moderately cold, neither warm nor very cold," also, figuratively, of persons, "unperturbed, undemonstrative, not excited or heated by passions," A figurative w

  • MathProblem 37 Common birthday problem2022-08-17 05:30:44

    What is the minimum number of people do you need, chosen at random, so that there is at least a 50% chance that at least two have the same birthday. Assume that people are born randomly throughout the year. You may ignore leap day. Solution 假设一年有 365天,假

  • MathProblem 38 Meeting at a restaurant problem2022-08-17 05:30:28

    Two people arrive in a restaurant independently. Each arrives a random time between 5pm and 6pm, distributed uniformaly (no moment in this range is any more likely for arrival than another). What is the probability they arrived within 10 minutes of each o

  • 【Java】List排序方法(包括对象、Map等内部排序实现)2022-08-15 02:01:50

    前言 日常开发中经常会对List集合做排序操作,JDK为我们提供了强大的排序方法,可以针对对象、Map、基本类型等进行正/倒排序操作。 参考博客:JAVA列表排序方法sort和reversed介绍, 以及排序时避免空指针异常_林临L的博客-CSDN博客_java sort 空指针 一、常规排序 /** * String类

  • javascript 创建对象2022-08-07 11:30:33

    创建具有相同属性和方法的对象 1.构造函数 构造函数首字母大写,在构造函数内给this添加我想要的属性即可 function Person(name){ this.name=name; this.sayName=function(){ console.log(this.name); }; }//在构造函数内给this添加

  • Java8新特性之Steam2022-08-05 11:36:45

    package com.demo; import org.testng.annotations.Test; import java.util.ArrayList; import java.util.List; import java.util.Optional; import java.util.stream.Collectors; import java.util.stream.Stream; public class StreamTest { @Test public void

  • leetcode 406. Queue Reconstruction by Height 根据身高重建队列(中等)2022-07-30 23:02:12

    一、题目大意 标签: 贪心 https://leetcode.cn/problems/queue-reconstruction-by-height 假设有打乱顺序的一群人站成一个队列,数组 people 表示队列中一些人的属性(不一定按顺序)。每个 people[i] = [hi, ki] 表示第 i 个人的身高为 hi ,前面 正好 有 ki 个身高大于或等于 hi 的人。

  • Spring-Quite Start Demo012022-07-17 19:06:31

    创建maven项目,并在pom.xml 文件中添加Spring的依赖 代码: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:

  • JS:类-Class2022-07-13 00:00:35

    class类 类是用于创建对象的模板。 我们使用 class 关键字来创建一个类,类体在一对大括号 {} 中,我们可以在大括号 {} 中定义类成员的位置,如方法或构造函数。 每个类中包含了一个特殊的方法 constructor(),它是类的构造函数,这种方法用于创建和初始化一个由 class 创建的对象。

  • PL Class-The Future2022-07-10 19:31:31

    教师评语: it was a pleasure to talk to you today. You did a great job in our lesson today, especially with your conversation skills. Focus on your use of the verb tenses, it is an area in which you could improve.Andy. 清楚度 87 强项: Today your pronunciation

  • C# EF去除重复列DistinctBy2022-07-08 12:35:02

    1.添加一个扩展方法 1 2 3 4 5 6 7 8 9 10 11 12 13 14 public static class DistinctByClass     {         public static IEnumerable<TSource> DistinctBy<TSource, TKey>(this IEnumerable<TSource> source, Func<TSource, TKey> keySelector)

  • Java 为什么我们需要匿名内部类(使用及作用)2022-07-08 02:02:35

    1.匿名内部类的基本格式 new 类名或接口名(){ //重写方法 };     我们平时new一个对象的基本格式为类名或接口名 对象名=new 类名或接口名(),形式上是有区别的,但两者其实都是新建了个对象,不要被名字中有个类搞混。重写方法常见于子类继承父类和子类实现接口。   本质:一个继承

  • 动态代理2022-06-30 18:02:52

    接口类 public interface People { void eat(String name); void run(); } 实现类: public class Man implements People{ @Override public void eat(String name) { System.out.println("eat"); } @Override public void run

  • sql模糊查询2022-06-30 15:12:10

    SQL模糊查询 %:代表匹配0个字符、1个字符或者多个字符 _:代表匹配有且只有一个字符 []:代表匹配范围内 [^]:代表匹配不在范围内 select * from people where PeopleName like '刘%'; --查询姓刘的员工,名字是两个字 select *from people where PeopleName like '刘_'; --取第几个

  • greedy2022-06-27 06:02:36

    881. Boats to Save People Medium You are given an array people where people[i] is the weight of the ith person, and an infinite number of boats where each boat can carry a maximum weight of limit. Each boat carries at most two people at the sa

  • 【letter】2022/6/242022-06-24 23:04:27

      I only have a best friend that is my favorite person .But some contradictions and misunderstandings make this valuable friendship breakdown Sometimes i think if time could go back , I will mend this friendship .Sadly time can not be set back。In China pe

  • Mybatis 区别-开发2022-06-23 22:38:30

    三.MyBatis 主流的ORM 支持java .NET Ruby三种语言,MyBatis是对JDBC的封装 ORM框架Hibernate 区别: 1)sql 优化方面 Hibernate 使用 HQL(Hibernate Query Language)语句,独立于数据库。不需要编写大量的 SQL,就可以完全映射,但会多消耗性能,且开发人员不能自主的进行 SQL 性能优化。提供

  • Mybatis的常用配置-多表关联查询2022-06-23 22:38:06

    Mapper.xml常用配置 全局配置文件(数据库,事物管理,Mapper的注册、打印文件SQL、慢性加载、二级缓存) Mapper配置文件 (定义自定义接口的具体方案;SQL、数据库、数据库与POJO的映射) 多表关联查询: 一对一,一对多、多对多 单表查询: select *from people where id=#{id} 业务:通过id查

  • Mybatis的缓存与动态SQL2022-06-23 22:36:12

    Mybatis的缓存 缓存也是为了减少java应用与数据库的交互次数,提升程序的效率 一级缓存 自带一级缓存,并且无法关闭,一直存在,存储在SqlSession中 使用同一个sqlsession进行查询操作一级缓存存在;如果有多个sqlsession那么一级缓存不存在 缓存一般争对查询,如果进行了增删改查操作,会自动

专注分享技术,共同学习,共同进步。侵权联系[81616952@qq.com]

Copyright (C)ICode9.com, All Rights Reserved.

ICode9版权所有