2013-03-24 61 views

回答

1

你需要在字符串中解析它。就像這樣:

for i = 2, 5, 1 do 
    os.execute(string.format("input text \"tp://www.lua.org/manual/2/%d.1/\"", i)); 

甚至更​​好:

for i = 2, 5, 1 do 
    os.execute(string.format([[input text "tp://www.lua.org/manual/2/%d.1/"]], i)); 

工作here on codepad看到它。

+0

太棒了! :) :) :) – user2203938 2013-03-24 06:23:17

相關問題