2014-01-21 40 views

回答

4

不能轉換表達了一些,但你可以定義表達一個匿名函數,和Lua編譯它,併產生價值,像這樣:

f = loadstring("return 2+2") 
print(f()) -- Prints 4 
相關問題