lua提供的string方法

来源:互联网 发布:第八届云计算大会ppt 编辑:程序博客网 时间:2024/06/05 14:35
function Test(str)
local temp = string.upper(str)
print(temp)
end


Test("Abcd")


function Test1(str)
local temp = string.lower(str)
print(temp)
end


Test1("Abcd")


resutl: ABCD abcd

原创粉丝点击