I want to fly higher
          programming Explorer
          posts - 114,comments - 263,trackbacks - 0
          1.Rust

          fn main() {
              println!("Hello, Rust!");
          }

          2.Go

          package main

          import (
              "fmt"
          )

          func main() {
              fmt.Println("Hello,World!");
          }



          3.Node.js/Io.js

          console.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.Groovy


          package 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.Scala

          package com.mavsplus.scala.example.helloworld

          /**
           * 第一個Scala程序 "Hello World!"
           
          */
          object HelloWorld {
            def main(args: Array[String]) {
              println("Hello,World!")
            }
          }


          6.Lua

          local function main()
            print("Hello,World!")
          end
          main()

          posted on 2015-06-10 21:36 landon 閱讀(4177) 評論(2)  編輯  收藏 所屬分類: ProgramLanguage

          FeedBack:
          # re: Rust/Go/Node.js/Io.js/Groovy/Scala/Lua 語言入門 Ⅰ
          2015-06-11 13:20 | stone2083
          echo 'Hello, Shell'  回復  更多評論
            
          # re: Rust/Go/Node.js/Io.js/Groovy/Scala/Lua 語言入門 Ⅰ
          2015-06-26 22:54 | Yanbin
          一個語言光一個 Hello World! 程序等于什么都沒說,Hello World! 只是跑起來了。  回復  更多評論
            
          主站蜘蛛池模板: 西乌珠穆沁旗| 彭州市| 临武县| 大悟县| 保山市| 新宁县| 东阳市| 安岳县| 浦东新区| 饶河县| 琼海市| 平顺县| 红原县| 墨竹工卡县| 罗江县| 高尔夫| 景宁| 襄汾县| 曲沃县| 娄底市| 大兴区| 耒阳市| 射洪县| 手机| 天气| 宜章县| 平武县| 石首市| 洞头县| 晋城| 甘洛县| 舞阳县| 利辛县| 易门县| 汪清县| 祁连县| 西华县| 晴隆县| 棋牌| 盘锦市| 宁阳县|