lua一个字串问题
我触发抓取了一个字串是1,000,000,我想通过lua编译获得一个数字1000000_num=1,000,000
_num=tonumber(Trim(string.gsub(_num,","," ")))
SetVariable ("aaa",_num)
这个最终结果是错误的无法执行我想让aaa=1000000
北大侠客行MUD,中国最好的MUD _num="1,000,000"
_num=tonumber(Trim(string.gsub(_num,",","")))
SetVariable ("aaa",_num)_num=1,000,000相当于_num, _, _ = 1, 0, 0 谢谢楼上的帮主已经顺利解决了
页:
[1]