首先在電腦(Fedora)上裝Lua,
$sudo yum install lua
Package lua-5.1.4-7.fc14.x86_64 already installed and latest version發現他本來已經裝好了!
然後vim helloworld.lua
#!/usr/bin/lua print ("Hello World!")
then,
$chmod +x helloworld.lua
$./helloworld
看到helloworld的程式碼,當下覺得跟python很像,必定是scripting language。
Lua特點
- Scripting Language
- Light Weight
- Multi-Paradigm
相對的,我發現Lua的資料並沒有很多,我則針對Lua v.s. Python做了搜尋:
Hello,Heron the Almighty.<(_ _)>
ReplyDeleteI'm Ruinland.
Camel gave me this website address. :PPP
Hello Maskman,
ReplyDeleteshe said that she's a squirrel.
like this:
http://1.bp.blogspot.com/_4NvgfQt80xs/TTsVcEKr4JI/AAAAAAAACc0/MB1psK-ghEM/s400/SquirrelBazooka.jpg