lua-helloworld
2024-09-08 14:44:10
write script file, a.lua:
#!/usr/bin/lua print("hello world!")
add excutable prperty to this file:
chmod a+x a.lua
now, we can run this file as program:
./a.lua
of couse, also, i can run lik this "lua ./a.lua", and we dont need the first line in a.lua file.
running show:
done.
最新文章
- PEP 8
- Linux下运行C语言程序
- nyoj130 相同的雪花
- iOS开发多线程篇—创建线程
- ps颜色模式
- 高手速成android开源项目【导航篇】
- Android遇到的错误,运行时崩溃
- Razor视图引擎 语法学习(一)
- mousewheel 与 DOMMouseScroll
- try { var mergeFilePath = string.Format(";{0}mergepdf.pdf";, tempDownDir); PDFPrintHelper.MergePDFFile(pdfList, mergeFi
- Cassandra Issue with Tombstone
- YII2调试 通过日志记录将变量保存到文件
- Gibbs sampling
- Android绘图机制(三)——自定义View的实现方式以及半弧圆新控件
- Python内置函数(30)——hex
- asp.net core部署到iis中出现 HTTP Error 502.5 - Process Failure的问题
- 快速排序Qsort
- windows下搭建eclipse关于python的开发环境及初始化参数配置
- 内存溢出OutOfMemory
- 第一个appium的Demo
热门文章
- .NET Core 1.0 CentOS7 尝试(三、使用VSCode创建一个Web应用)
- Windows服务的新建,安装,卸载,调试以及调用!
- Android 验证码倒计时两种方案
- Linux下各文件夹的结构说明及用途介绍(转载)
- 你不知道的HTTP之首部字段一览
- The Django Book - 第四章 模板2
- 在ABAP里模拟实现Java Spring的依赖注入
- myeclipse报错MA
- 5 Options for Distributing Your iOS App to a Limited Audience
- Mac上安装Node和NPM【转】