08 2020 档案
摘要:class Solution { public boolean isFlipedString(String s1, String s2) { if(s1.length() != s2.length()){ // 判断两个字符串长度,不等直接返回false return false; } return
阅读全文
摘要:class Solution { public boolean canPermutePalindrome(String s) { Map<Character, Integer> chars = new HashMap<>(); for (char c : s.toCharArray()){ if (
阅读全文
摘要:class Solution { public String replaceSpaces(String S, int length) { StringBuilder sb = new StringBuilder(); for (int i=0; i<length; i++){ // 以真实长度为界
阅读全文
摘要:class Solution { public boolean CheckPermutation(String s1, String s2) { if(s1.length()!=s2.length()){ return false; } int[] array = new int[128]; # 存
阅读全文
摘要:class Solution { public boolean isUnique(String astr) { boolean flag = true; int count = astr.length(); if (count != 0 || count != 1){ for (int i = 0;
阅读全文
摘要:操作字符串的类有: String、 StringBuffer、 StringBuilder String 和 StringBuffer、StringBuilder的区别在于: String声明的是不可变的对象,每次操作都会new一个新的 String对象,然后将指针指向新的 String对象 而 S
阅读全文
摘要:原文链接:https://www.cnblogs.com/Qian123/p/5703507.html#_label1 hashcode() 方法详解 hashCode()方法给对象返回一个hash code值。这个方法被用于hash tables,例如HashMap。 它的性质是: 在一个Java
阅读全文
摘要:== 解读 对于基本类型和引用类型 == 的作用效果是不同的。 基本类型:比较值是否相同; 引用类型:比较引用是否相同。 代码示例: 1 String x = "string"; 2 String y = "string"; 3 String z = new String("string"); 4
阅读全文
摘要:原文链接:https://blog.csdn.net/weixin_35813749/article/details/52374749
阅读全文
摘要:原文链接:https://www.cnblogs.com/Neil-J/articles/13545245.html 首先,我们有一个one-hot编码的概念。 假设,我们中文,一共只有10个字。。。只是假设啊,那么我们用0-9就可以表示完 比如,这十个字就是“我从哪里来,要到何处去” 其分别对应“
阅读全文
摘要:原文链接:https://blog.csdn.net/nokia_lc/article/details/53812783 以参数为double 类型为例 首先要注意的是它的返回值类型是long,如果 Math.round(11.5f),那它的返回值类型就是int,这一点可以参考API 其次 Retu
阅读全文
摘要:import pandas as pd import numpy as np path = r'Path\meta.h5' path_to = r'Path\result.csv' # 写入csv h5_store = pd.HDFStore(path, mode='r+') # 创建新的对象、读入
阅读全文
摘要:JDK:Java Development Kit,是java开发包,它提供了java开发所需的环境以及运行环境。 JRE:Java Runtime Environment,java运行环境,为java运行提供所需环境。 通过以上概念可以得到,JDK中包含了JRE,同时还包含了编译java源码的编译器
阅读全文

浙公网安备 33010602011771号