会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
山村放羊娃
为什么坚持,因为我们喜欢的东西都很贵,我们想去的地方都很远,我们喜欢的人都很优秀。
博客园
首页
新随笔
联系
管理
上一页
1
2
3
4
5
6
下一页
2025年7月18日
REPO 命令大全
摘要: repo forall -c 'echo $REPO_PROJECT':得到所有仓库的名称 repo forall -c 'echo $REPO_PATH': 得到所有仓库的本地路径 repo forall -c 'echo $REPO_REMOTE': 得到远程仓库的名称 repo forall
阅读全文
posted @ 2025-07-18 14:20 山村放羊娃
阅读(58)
评论(0)
推荐(0)
2025年7月17日
bash 脚本中添加颜色输出
摘要: echo -e "\e[31m红色文字\e[0m" echo -e "\e[1;32m粗体绿色文字\e[0m" echo -e "\e[4;34m带下划线的蓝色文字\e[0m" echo -e "\e[41;37m白色文字红色背景\e[0m" echo -e "\e[1;4;33m粗体带下划线的黄色
阅读全文
posted @ 2025-07-17 16:06 山村放羊娃
阅读(11)
评论(0)
推荐(0)
2025年7月15日
GROOVY 特征(继承,重写)
摘要: class Example { static void main(String[] args) { Student st = new Student(); st.StudentID = 1; // println(st.DisplayMarks()); // println(st.DisplayTo
阅读全文
posted @ 2025-07-15 16:07 山村放羊娃
阅读(7)
评论(0)
推荐(0)
GROOVY 泛型
摘要: class Example{ static void main(String[] args) { List<String> list = new ArrayList<String>(); list.add("first string"); list.add("second string"); lis
阅读全文
posted @ 2025-07-15 14:41 山村放羊娃
阅读(4)
评论(0)
推荐(0)
2025年7月14日
GROOVY 字符串
摘要: class Example{ static void main(String[] args) { String sample = "hello world"; println(sample[4]); println(sample[-1]); // 包头不包尾 println(sample[1..2]
阅读全文
posted @ 2025-07-14 15:39 山村放羊娃
阅读(5)
评论(0)
推荐(0)
GROOVY 运行插件
摘要: 如果想要在vscode里面运行groovy脚本,请先安装code runner插件
阅读全文
posted @ 2025-07-14 15:30 山村放羊娃
阅读(11)
评论(0)
推荐(0)
2025年7月10日
Gitlab 权限级别
摘要: Gitlab 权限级别: GitLab中的权限级别从低到高包括: Guest(访客) Reporter(报告者) Developer(开发者) Maintainer(维护者) Owner(所有者) 通常,Developer及以上级别的成员都有merge权限,但具体取决于项目的保护分支设置。
阅读全文
posted @ 2025-07-10 10:46 山村放羊娃
阅读(15)
评论(0)
推荐(0)
2025年7月7日
GROOVY 面向对象
摘要: 面向对象: class Student{ private int StudentID; private String StudentName; void setStudentID(int pID){ StudentID = pID; } void setStudentName(String pNam
阅读全文
posted @ 2025-07-07 17:17 山村放羊娃
阅读(4)
评论(0)
推荐(0)
GROOVY 异常处理 try catch
摘要: try catch finally class Demo{ static void main(String[] args){ try{ File file = new File("./Example.txt"); FileReader fr = new FileReader(file); }catc
阅读全文
posted @ 2025-07-07 16:21 山村放羊娃
阅读(26)
评论(0)
推荐(0)
GROOVY 正则表达式
摘要: + 一次或者多次 * 零次或者多次 ? 零次或一次 [] 范围 {} 匹配前面字符的次数
阅读全文
posted @ 2025-07-07 16:10 山村放羊娃
阅读(4)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
下一页
公告