# groovy

> 在工作中有时需要使用groovy做一些脚本处理

[Groovy](http://www.groovy-lang.org/)是构建在JVM上的一个轻量级动态语言，结合了Python, Ruby 和 Smalltalk的许多强大特性。

Groovy使用Java编写，语法和Java类似。Groovy的代码能够和Java代码和好结合，也能用于扩展现有代码。相对于Java，Groovy的代码灵活性有非常显著的提升，并且可以直接使用其他Java语言编写的库。

在W3Cschool网站有一个非常[简明groovy教程](https://www.w3cschool.cn/groovy/groovy_overview.html)，我主要参考这个简明手册学习。

简书上的 [Groovy简介和一点资源](https://www.jianshu.com/p/5897ecef546f)

## 参考

* [Groovy简介与使用](https://www.jianshu.com/p/2c6b95097b2c)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://huataihuang.gitbook.io/cloud-atlas-draft/develop/java/groovy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
