上一页 1 2 3 4 5 6 7 ··· 11 下一页
摘要: 看了一个教程:https://www.cnblogs.com/wkfvawl/p/9487165.html 有些不懂的地方自己查阅了一下 键值的添加,获得文件中相同字符出现的次数, counts = ,counts.get(word,0) 一个常用的统计词频的方法 txt = "a b c d a 阅读全文
posted @ 2021-06-05 20:36 KinoLogic 阅读(248) 评论(0) 推荐(0)
摘要: 题目描述 给定一个数组arr,返回arr的最长无重复元素子数组的长度,无重复指的是所有数字都不相同。 子数组是连续的,比如[1,2,3,4,5]的子数组有[1,2],[2,3,4]等等,但是[1,3,4]不是子数组 #include <bits/stdc++.h> using namespace s 阅读全文
posted @ 2021-05-13 18:08 KinoLogic 阅读(1360) 评论(0) 推荐(0)
摘要: 一、面向对象 对象封装:私有变量+公共方法 方法与构造方法 this变量 Animal.java public class Animal { String name; int age; void move() { System.out.println("the animal can move"); 阅读全文
posted @ 2021-05-13 16:03 KinoLogic 阅读(40) 评论(0) 推荐(0)
摘要: 考试的时候想复杂了,其实直接一边写放进set里去重就可以了 很有意思 自己的理解就是cpp的map+set或者就是set可以完成大多数java的hashset操作 链接:https://ac.nowcoder.com/acm/problem/221493 来源:牛客网 题目描述 小红有一个字符串,她 阅读全文
posted @ 2021-05-11 16:33 KinoLogic 阅读(2165) 评论(0) 推荐(0)
摘要: 统计每个人的总成绩排名 select stu.`name`,sum(stu.score) as totalscore from stu GROUP BY `name` order by totalscore 统计每门课程的总分排序 SELECT stu.class, sum(stu.score) a 阅读全文
posted @ 2021-05-07 16:48 KinoLogic 阅读(292) 评论(0) 推荐(0)
摘要: https://geek-docs.com/sql/sql-examples/sql-cumulative-sum.html 阅读全文
posted @ 2021-05-05 22:28 KinoLogic 阅读(145) 评论(0) 推荐(0)
摘要: 1、方法一(仅适用单个字段):使用 not in ,比较容易理解,缺点是效率低 如:select A.ID from A where A.ID not in (select ID from B); 2、方法二(适用多个字段匹配):使用 left join...on... , "B.ID isnull 阅读全文
posted @ 2021-05-05 21:58 KinoLogic 阅读(4323) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/shizhijie/p/9366247.html 排名函数 主要有rank和dense_rank两种 区别: rank在排名的时候,排名的键一样的时候是一样的 比如A,B都是100分,两个排名都是1,然后是3 但是dense_rank就会给出1,1,2 阅读全文
posted @ 2021-05-05 21:25 KinoLogic 阅读(75) 评论(0) 推荐(0)
摘要: 不用造轮子是真的好用啊 python中单引号双引号的区别 和cpp不一样,cpp单引号表示字符,双引号表示字符串,'c'就直接是ascii值了 Python中单引号和双引号都可以用来表示一个字符串 单双引号是用于区分在引号中还要用引号的情况 参考:Python中单引号,双引号,3个单引号及3个双引号 阅读全文
posted @ 2021-05-03 18:05 KinoLogic 阅读(49) 评论(0) 推荐(0)
摘要: csv文件:逗号分隔值(Comma-Separated Values,CSV,有时也称为字符分隔值,因为分隔字符也可以不是逗号) 右键点击raw按钮,选择目标另存为,下载的是txt文件 win10如何修改txt文件为csv文件? https://jingyan.baidu.com/article/4 阅读全文
posted @ 2021-05-03 17:43 KinoLogic 阅读(598) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 11 下一页