ICode9

精准搜索请尝试: 精确搜索
  • 英文翻译72022-01-23 22:33:11

    OpenJudge - 07:Shortest Path 描述 There is a graph with N nodes. Given the length of each edge between the nodes. Find the shortest path from S to E. 输入 First line: three positive integer number N (N <= 100), S (S <= N), E(E <= N). Next N lines: th

  • 2022.1.232022-01-23 21:59:52

    上午看大话数据结构,了解了线索二叉树。 下午测试(两题) 晚上补题 (一题) 题目描述 Imp likes his plush toy a lot. Recently, he found a machine that can clone plush toys. Imp knows that if he applies the machine to an original toy, he additionally gets one more orig

  • 【题解】CF1063B Labyrinth(BFS)2022-01-18 20:02:10

    原题戳这里---> https://www.luogu.com.cn/problem/CF1063B 题目描述 You are playing some computer game. One of its levels puts you in a maze consisting of n lines, each of which contains m cells. Each cell either is free or is occupied by an obstacle. The start

  • Java中Set的使用2022-01-13 22:32:04

    使用场景 //Set的原因是Set集合不包含重复元素 1. HashSet能快速访问的Set 2. TreeSet能排序(数字按从小到大) 3. LinedHashSet记录下插入时的顺序 用法 1. HashSet是采用hash表算法来实现的,其中的元素没有按顺序排列,主要有add()、remove()以及contains()等方法 2. TreeSet是采

  • wireshark 语法使用详解2022-01-13 14:31:56

    协议过滤 tcp udp arp icmp http smtp ftp dns msnms ip ssl oicq bootp 等等 如果需要排除arp包: !arp 或者 not arp IP过滤 来源和目标地址都为10.1.0.1:ip.addr==10.1.0.1 源地址过滤: ip.src==10.1.0.1 目标地址过滤: ip.dst==10.1.0.1 端口过滤 不管源端口和目标

  • 第十一天 dom节点的查找2022-01-10 12:34:04

    题目描述: 查找两个节点的最近的一个共同父节点,可以包括节点自身 输入描述: oNode1 和 oNode2 在同一文档中,且不会为相同的节点 解题想法: 第一眼看到这个题目的时候,以为是根据题目直接找dom最近的一个根节点,事实上这道题目的要求也是这样的,所以这道题目其实很简单,找到两个节点的

  • TC13 两层使用soa登录的方法2022-01-07 09:34:33

    #------Login User Information.------##TC Login UserIDUserID=000001TCUser=000001#TC Login PasswordPassword=1#TC Login GroupGroup=dba#TC Login RoleRole=DBA#TC Login AddressTCServerURL=tccs://TcEnv1#TCServerURL=iiop:localhost:1572/TcServer1#TCServerURL=http:

  • Java 中判断一个字符串是否包含另外一个字符串的方法2022-01-02 16:05:41

    方法一:indexOf(String s) 可以配合indexOf(String s)的使用,如果包含,返回的值是包含该子字符串在父类字符串中起始位置;如果不包含必定全部返回值为-1 public void test02() { String str1="张三"; String str2="是一个张三大笨蛋"; if(str2.indexOf(str1)!=-1) { Sys

  • Java在任意数中选择任意数量不重复数的数据2022-01-02 11:07:02

    主要就是用Random与contains进行选取。 import java.util.ArrayList; import java.util.List; import java.util.Random; //随机数练习,选择在任意个数中选择任意数量的不重复数据 public class Text1 { public static void main(String[] args) { //创建数组对

  • Vue组件之间的数据共享2021-12-27 19:00:51

    导读: 本篇文章会讲到Vue中重要的一个问题,就是组件与组件之间怎么进行数据共享?之前我们有说过,每个组件之间是相互独立的,可以通过导入组件以及注册组件的方式进行使用,那我们组件之间怎么传递数据呢? 1、组件之间的关系 在开发中 经常见到的关系分为以下几种: 父子组件(父子关

  • xpath定位:string()方法 将标签里边的东西全部转换成字符串,后再进行定位2021-12-23 17:03:41

      1、当元素的内的文字存在换行,可使用string()方法 定位,换行的内容 用空格可表示 //span[@class="es--total--ZkwfWuQ"][contains(string(), '共 256 条记录')]      2、标签中,同时存在文字和其他标签 <li class="active"> <a href="#"> <i>DOI<

  • 论文写作 18: 审稿意见回复要直截了当2021-12-16 23:34:51

    稿件投到期刊, 如果编辑让你修改, 多半就有戏了. 在修改论文的同时, 需要准备一个 point-to-point 的回复. 几点注意事项: 思想上务必要端正态度, 编辑和审稿人花大量时间义务审稿不是想为难你, 而是来帮助你改进论文质量.问题应该直接回答, 而不要顾左右而言他.回复不要太长

  • 在Windows 10的cmd输出彩色文本2021-12-10 07:31:06

    # termcolor outputs stuff like '\033[0m'. It doesn't work in Windows 10's cmd. import sys from ctypes import * user32 = CDLL('user32.dll'); kernel32 = CDLL('kernel32.dll') # https://docs.microsoft.com/en-us/windo

  • MySQL-Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggre2021-12-09 21:00:38

    Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'a_id' which is not functionally dependent on columns in GROUP BY clause;this is incompatible with sql_mode=only_full_group_by 解决方案 先使用 SQL 查询 select @@g

  • Vue runtime 提示 Hydration completed but contains mismatches. 错误2021-12-09 14:01:14

    一次在 Review Nuxt3 代码时发现 Vue runtime 报了一个 Hydration completed but contains mismatches. 的错误(目前不影响程序运行)。 经过排查,是因为开发在写 <table> 的时候没有写 <tbody>,直接写了 <tr>,类似下面这样 <template> <table> <tr></tr> <tr></tr&g

  • java contains细节2021-12-08 20:31:05

    contains

  • 217. 存在重复元素2021-12-08 18:02:51

    集合 import java.util.HashSet; class Solution { public boolean containsDuplicate(int[] nums) { HashSet<Integer> set = new HashSet<>(); for (int i = 0; i < nums.length; i++) { if (set.contains(nu

  • pandas的 str.contains()函数2021-12-07 19:34:33

     str.contains("四川")能查询数据包含"四川"的判断条件   # 导入pandas模块,并以"pd"为该模块的简写 import pandas as pd # 使用pd.read_csv()函数读取路径为 "/Users/find/信用卡用户信息.csv" 的CSV文件,并将结果赋值给变量data data = pd.read_csv(r"C:\Users\Administrato

  • Class path contains multiple SLF4J bindings.解决方案2021-12-05 19:01:23

    错点: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/home/hadoop/soft/apache-hive-2.3.6-bin/lib/log4j-slf4j-impl-2.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/home/hadoop/soft/

  • Infinispan安装、配置2021-11-30 15:58:18

    下载地址: https://infinispan.org/download/ 运行服务端: /bin/server.sh 无集群并指定配置文件运行服务端:-c /bin/server.sh -c infinispan-local.xml 运行客户端; bin/cli.sh user create myuser -p changeme -g admin 或者 /bin/cli.sh user create username -p "qwer1234!"

  • CF组赛补题- Shuffle2021-11-28 18:58:41

    You are given an array consisting of nn integers a1a1, a2a2, ..., anan. Initially ax=1ax=1, all other elements are equal to 00. You have to perform mm operations. During the ii-th operation, you choose two indices cc and dd such that li≤c,d

  • springboot 关于 Class path contains multiple SLF4J bindings.警告的解决2021-11-28 14:35:23

    springboot 关于 Class path contains multiple SLF4J bindings.警告的解决 有一次配置好springboot项目启动后,忽然发现有下边的警告: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/E:/mavenJarOnline/ch/qos/logback/logback-cl

  • Pandas Series contains 判断2021-11-28 10:01:14

      网址: https://pandas.pydata.org/docs/reference/api/pandas.Series.str.contains.html?highlight=contains#pandas.Series.str.contains        

  • VSCODE导出PDF的数学公式2021-11-26 16:35:32

    1. 找到配置文件template.html 比如windows下的路径: C:\Users\njhx02\.vscode\extensions\yzane.markdown-pdf-1.4.4\template 2. 增加以下配置,红色的两行 <!DOCTYPE html> <html> <head> <title>{{{title}}}</title> <meta http-equiv="Content-ty

  • Leetcode 705. 设计哈希集合(链地址法)2021-11-23 18:32:50

    题目 不使用任何内建的哈希表库设计一个哈希集合(HashSet)。 实现 MyHashSet 类: void add(key) 向哈希集合中插入值 key 。 bool contains(key) 返回哈希集合中是否存在这个值 key 。 void remove(key) 将给定值 key 从哈希集合中删除。如果哈希集合中没有这个值,什么也不做。

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

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

ICode9版权所有