Groovy:Hello World


#Groovy


println "hello world"

保存为 hello.groovy,执行:

▶ groovy hello.groovy
hello world

等效的写法:

def msg = "hello world"
println msg
println("hello world")


( 本文完 )