Skip to content

alenwesker/misc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

大杂烩

lua_tree

文件: tree.lua 函数: log_tree(desc, var); 用途: 在lua中树状打印table.

local player =
{
    name = "bitch",
    level = 10,
    id = 123,
    items =
    {
        [1] = "some_item_1",
        [2] = "some_item_2"
    }
};
log_tree("player_data", player);

输出文本:

player_data
├─ items
│  ├─ 2: "some_item_2"
│  └─ 1: "some_item_1"
├─ level: 10
├─ name: "bitch"
└─ id: 123

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Lua 100.0%