Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在大多数语言中,我可以很容易地对变量的当前值做一些数学函数(加法、减法等),比如foo +=1. Lua中有类似的东西吗?
foo +=1
不,没有捷径可走foo = foo + 1。
foo = foo + 1
tag to selected text