lua中打印一个空的字段会导致栈里增加1

hello.lua

helloTable = {
    
    name="xiaoming", age=12}
print("hello")
print("hello2")
print(helloTablex.x)

在这里插入图片描述
这里的print(helloTablex.x),会导致栈里多个报错信息,是string类型。
这个要注意哦!!!

Guess you like

Origin blog.csdn.net/wodownload2/article/details/120699011