如何运行.lua文件? [英] How do I run a .lua file?
本文介绍了如何运行.lua文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要运行一个.lua文件和另一个.lua文件. 这是我的代码:
I need to run a .lua file with another .lua file. Here is my code:
Program = io.read()
dofile(program)
我键入要正确运行的文件的名称,但是由于某种原因,我的编译器说我键入的文件不存在. (确实如此)
I type the name of the file that I want to run correctly, but for some reason my compiler says that the file I typed does not exist. (Which it does)
推荐答案
Lua区分大小写; Program
不是program
否则代码应该可以工作.
Lua is case sensitive; Program
is not program
Otherwise the code should work.
这篇关于如何运行.lua文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文