上一页 1 2 3 4 5 6 7 8 9 ··· 56 下一页
摘要: 可以直接用+ assert 'ab' == 'a' + 'b' 支持多行 def aMultilineString = '''line one line two line three''' out: Fri Jan 03 11:14:58 CST 2020: INFO: line oneline t 阅读全文
posted @ 2020-01-03 11:40 筱筱的春天 阅读(1469) 评论(0) 推荐(0) 编辑
摘要: 举例子看吧 def map = [:] map."an identifier with a space and double quotes" = "ALLOWED" map.'with-dash-signs-and-single-quotes' = "ALLOWED" assert map."an 阅读全文
posted @ 2020-01-03 10:46 筱筱的春天 阅读(743) 评论(0) 推荐(0) 编辑
摘要: 1.错误信息 Exception in thread "main" java.lang.IllegalArgumentException: Cannot format given Object as a Date at java.text.DateFormat.format(Unknown Sour 阅读全文
posted @ 2019-12-31 14:35 筱筱的春天 阅读(2871) 评论(0) 推荐(0) 编辑
摘要: 匹配的是 点后面2个或3个数字 例如 .258 .258 阅读全文
posted @ 2019-12-30 16:15 筱筱的春天 阅读(782) 评论(0) 推荐(0) 编辑
摘要: from: https://www.cnblogs.com/EmptyFS/p/4105713.html 前言 做为一个程序员,在开发的过程中会发现,有框架同无框架,做起事来是完全不同的概念,关系到开发的效率、程序的健壮、性能、团队协作、后续功能维护、扩展......等方方面面的事情。很多朋友在学习 阅读全文
posted @ 2019-12-30 10:30 筱筱的春天 阅读(1713) 评论(0) 推荐(0) 编辑
摘要: 下次调我就知道在哪了 阅读全文
posted @ 2019-12-30 10:13 筱筱的春天 阅读(423) 评论(0) 推荐(0) 编辑
摘要: http://docs.groovy-lang.org/latest/html/gapi/index.html?overview-summary.html 阅读全文
posted @ 2019-12-26 16:09 筱筱的春天 阅读(144) 评论(0) 推荐(0) 编辑
摘要: each例子:def a = [1, 2, 3, 4]a.each { if (it == 2) return true // 满足条件本轮循环结束 println it} 阅读全文
posted @ 2019-12-26 15:35 筱筱的春天 阅读(3013) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/Dreamice/p/7809605.html 阅读全文
posted @ 2019-12-25 15:40 筱筱的春天 阅读(370) 评论(0) 推荐(0) 编辑
摘要: SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Calendar c = Calendar.getInstance(); //过去七天 c.setTime(new Date()); c.add(Calend 阅读全文
posted @ 2019-12-25 11:41 筱筱的春天 阅读(478) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 56 下一页