2012年11月8日 星期四

[Lua] Hello World

安裝:sudo apt-get lua5.2
(註:目前 Ubuntu 1304 是用 liblua5.1)

檔案:hello.lua
print("Hello World")
執行:lua hello.lua
Hello World
參考:
  1. Programming in Lua (second edition) by Roberto Ierusalimschy, Lua.org, March 2006 
相關文章
  • lua教學 - 不錯的 lua Hello World 文章,應該是《Programming in Lua》某個章節的翻譯,使用 lua 互動模式使用 print 印出字串、數字,數字運算,字串運算,數字變數,io.write(),io.read()。

沒有留言:

張貼留言

SIP header Via

所有 SIP 訊息 都要有 Via,縮寫 v。一開始的 UAC 和後續途經的每個 proxy 都會疊加一個 Via 放傳送的位址,依序作為回應的路徑。 格式 sent-protocol sent-by [ ;branch= branch ][ ; 參數 ...] s...