方法介绍

命令功能: 判断字符串是否为纯数字字符串

语法格式: 类_字符串.是否为纯数字(str)

参数说明: str:字符串

返回值: 布尔型,true为纯数字字符串 false不是纯数字字符串

require "懒人综合插件"


local str1 = "3497439"
local str2 = "83048a389b"

while true do
    print(类_字符串.是否为纯数字(str1), 类_字符串.是否为纯数字(str2)) -- true false
    print("----------------------------------")
    sleep(2000)
end

Copyright © 湖南合鑫网络科技有限公司 2020 all right reserved,powered by Gitbook该文件修订时间: 2020-11-27 19:57:36

results matching ""

    No results matching ""