1.Rustfn main() {
    println!("Hello, Rust!");
}
2.Gopackage main
import (
    "fmt"
)
func main() {
    fmt.Println("Hello,World!");
}
3.Node.js/Io.jsconsole.log("Hello,World!");
var http = require('http');
http.createServer(function handler(req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello World\n');
}).listen(1337, '127.0.0.1');
console.log('Server running at http://127.0.0.1:1337/');
4.Groovypackage com.mavsplus.groovy.example.helloworld
/**
 * Groovy第一个例子 "Hello World!"
 * 
 * @author    landon
 * @since    1.8.0_25
 */
class HelloWorld {
    static void main(args) {
        println "Hello,World!"
    }
}
5.Scalapackage com.mavsplus.scala.example.helloworld
/**
 * 第一个Scala程序 "Hello World!"
 */
object HelloWorld {
  def main(args: Array[String]) {
    println("Hello,World!")
  }
}
6.Lualocal function main()
  print("Hello,World!")
end
main()
 
	posted on 2015-06-10 21:36 
landon 阅读(4194) 
评论(2)  编辑  收藏  所属分类: 
Program 、
Language