但是我的一个变量应该是一个球的名字,所以我可以在输出中引用它(例如:你给我一个最大直径为2厘米的PingPong球。然后你给我在程序中运行的球的数量,3。local n = io.read("*n") -- amount of balls local naam_Bal = io.read() -- hereI get an error if I enter a string
local av = io</e
我正在使用IntelliJ Idea 11中的Kahlua制作一些Lua脚本的原型,每当我尝试使用io.read()时,我都会遇到错误。这是我目前所拥有的:a = io.read() -- read a number当我在Idea中运行它时,我得到“尝试在解释器上调用nil :1”,如果我删除了要求和