local _t = {}
_t.name = "Li"
_t.age = 49
local str = string.gsub("hahah---[name]----[age]--xrz-", "[%[](.-)[%]]", function(s) return tostring(_t[s]) end)
print(str)
好文链接
评论可见,请评论后查看内容,谢谢!!!评论后请刷新页面。
local _t = {}
_t.name = "Li"
_t.age = 49
local str = string.gsub("hahah---[name]----[age]--xrz-", "[%[](.-)[%]]", function(s) return tostring(_t[s]) end)
print(str)
好文链接
本文由 用户 于 2024-02-18 发布在 夸智网,如有疑问,请联系我们。
本文链接:https://www.kuazhi.com/post/713302045.html
发表评论