一叶轻舟呀
一叶轻舟呀
全部文章
分类
归档
标签
去牛客网
登录
/
注册
一叶轻舟呀的博客
全部文章
(共44篇)
题解 | #字符函数正则匹配2#
select id, comment from comment_detail where comment regexp '^(是|求)';
2024-11-22
0
97
题解 | #字符函数正则匹配1#
select id, comment from comment_detail where comment regexp '是|试|报名' order by id;
2024-11-22
0
88
题解 | #求最小公倍数#
import java.util.*; public class Main { public static void main(String[] args) { Scanner console = new Scanner(System.in); int m ...
2024-11-20
0
47
题解 | #统计输入正数个数#
import java.util.*; public class Main { public static void main(String[] args) { int count = 0; Scanner scanner = new Scanner(Sys...
2024-11-20
0
58
题解 | #数列求和#
public class Main { public static void main(String[] args) { //write your code here........ long sum = 0; String init = ...
2024-11-20
0
49
题解 | #设置文字颜色#
[].forEach.call(document.querySelectorAll('p'), p => p.style.color = 'red')
2023-01-15
0
337
题解 | #判断是否符合指定格式#
function matchesPattern(str) { return /^(\d{3}-){2}\d{4}$/.test(str) }
2023-01-15
0
297
题解 | #属性遍历#
function iterate(obj) { return Object.keys(obj).map(key => `${key}: ${obj[key]}`) }
2023-01-15
0
326
题解 | #颜色字符串转换#
抄的,但是改进了 function rgb2hex(sRGB) { // 找出每一组,然后替换16进制 let newSRGB = sRGB.replace(/\s+/g, "") let regexp = /^rgb\(([01]\d{0,2}|2[0-5]{...
2023-01-15
0
335
题解 | #观察者模式#
class Observerd { constructor(name) { this.name = name this.state = '走路' this.observerSet = new Set() } // 用于保存观察者们 setObserver(observer) ...
2023-01-15
0
409
首页
上一页
1
2
3
4
5
下一页
末页