小编chr*_*rme的帖子

如何在 Lua 中打破一条长线

Util = {
  scale = function (x1, x2, x3, y1, y3) return (y1) + ( (y2) -  (y1)) * \
        ( (x2) -  (x1)) / ( (x3) -  (x1)) end

}

print(Util.scale(1, 2, 3, 1, 3))
Run Code Online (Sandbox Code Playgroud)

在 Lua 中打断长行的正确语法是什么?

lua

4
推荐指数
1
解决办法
6056
查看次数

标签 统计

lua ×1