《Programming in Lua 3》讀書筆記(五)

Lua:Statementhtml Lua支持:賦值、控制結構、函數調用等,另外Lua也支持一些所謂「奇葩」的語句段,那就是多重賦值還有局部聲明。 4.1 Assignment 基本的賦值同其餘語言相似:函數 a = "hello" .. "world" 所謂「奇葩」的多重賦值:post a,b = "hello","world" eg. a,b = "hello","world" print(a
相關文章
相關標籤/搜索