{"id":3678,"date":"2019-06-29T10:10:01","date_gmt":"2019-06-29T02:10:01","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3678"},"modified":"2019-07-27T00:20:01","modified_gmt":"2019-07-26T16:20:01","slug":"lua","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/lua","title":{"rendered":"lua\u547d\u4ee4 – \u72ec\u7acb\u7684Lua\u89e3\u91ca\u5668"},"content":{"rendered":"\n
Lua\u662f\u4e00\u95e8\u5f3a\u5927\uff0c\u9ad8\u6548\uff0c\u8f7b\u91cf\u7ea7\u7684\u5d4c\u5165\u5f0f\u811a\u672c\u8bed\u8a00\u3002lua\u547d\u4ee4\u662f\u72ec\u7acb\u7684Lua\u89e3\u91ca\u5668\u3002\u5b83\u80fd\u80fd\u591f\u52a0\u8f7d\u5e76\u6267\u884cLua\u6e90\u7a0b\u5e8f\u548c\u9884\u7f16\u8bd1\u7684\u4e8c\u8fdb\u5236\u683c\u5f0f\u3002lua\u65e2\u53ef\u4ee5\u4f5c\u4e3a\u811a\u672c\u89e3\u91ca\u5668\uff0c\u4e5f\u53ef\u4ee5\u7528\u4f5c\u4ea4\u4e92\u5f0f\u89e3\u91ca\u5668\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>lua [\u53c2\u6570] [\u6587\u4ef6]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u65b0\u5efa\u4e00\u4e2atest.lua\u6587\u4ef6\uff1a<\/p>\n\n\n\n \u4f7f\u7528lua\u547d\u4ee4\u6267\u884c\u4ee5\u4e0a\u811a\u672c\uff1a<\/p>\n\n\n\n <\/p>\n","protected":false},"excerpt":{"rendered":" Lua\u662f\u4e00\u95e8\u5f3a\u5927\uff0c\u9ad8\u6548\uff0c\u8f7b\u91cf\u7ea7\u7684\u5d4c\u5165\u5f0f\u811a\u672c\u8bed\u8a00\u3002lua\u547d\u4ee4\u662f\u72ec\u7acb\u7684Lua\u89e3\u91ca\u5668\u3002\u5b83\u80fd\u80fd\u591f\u52a0\u8f7d\u5e76\u6267\u884cLua\u6e90\u7a0b\u5e8f […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3678"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3678"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3678\/revisions"}],"predecessor-version":[{"id":3702,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3678\/revisions\/3702"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3678"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3678"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3678"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-e start<\/td> \u6267\u884cstart\u8bed\u53e5\uff0c\u5982\u679cstart\u4e2d\u542b\u6709\u7a7a\u683c\uff0c\u5f15\u53f7\u7b49\u7279\u6b8a\u5b57\u7b26\u5219\u9700\u8981\u4f7f\u7528\u5f15\u53f7\u62ec\u8d77\u6765 <\/td><\/tr> -i<\/td> \u5728\u6267\u884c\u5b8cscript\u540e\u8fdb\u5165\u4ea4\u4e92\u6a21\u5f0f <\/td><\/tr> -l<\/td> \u52a0\u8f7d\u5e93\u6587\u4ef6 <\/td><\/tr> -v<\/td> \u663e\u793a\u7248\u672c\u4fe1\u606f <\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# vim test.lua \nprint(\"Hello World\uff01\")\nprint(\"www.linuxcool.com\")<\/pre>\n\n\n\n
[root@linuxcool ~]# lua test.lua \nHello World\uff01\nwww.linuxcool.com<\/pre>\n\n\n\n