lua string类型 转 number类型

xiaoxiao2025-09-05  434

local start = "1" local t = type(start) if t == "string" then --判断是string类型的话,转为number start= tonumber(start) end

 

转载请注明原文地址: https://www.6miu.com/read-5035778.html

最新回复(0)