方法介绍
命令功能: 判断字符串是否为纯数字字符串
语法格式: 类_字符串.是否为纯数字(str)
参数说明: str:字符串
返回值: 布尔型,true为纯数字字符串 false不是纯数字字符串
require "懒人综合插件"
local str1 = "3497439"
local str2 = "83048a389b"
while true do
print(类_字符串.是否为纯数字(str1), 类_字符串.是否为纯数字(str2)) -- true false
print("----------------------------------")
sleep(2000)
end
