lua
lualua表元表lua闭包特性lua弱引用
lua表
复制:
mytable = {}
mytable[1] = "lua"
newtable = mytable
newtable[1] = "c#"
print(mytable[1]) -- c#
print(newtable[1]) -- c#
newtable[2] = "java"
print(mytable[2]) -- java
mytable = nil -- newtable还可用
操作:
mttable = {“lua”,“c#”,“j
原创
2021-04-01 18:15:48 ·
77 阅读 ·
0 评论