最近有一个业务是将json转成lua table格式放到lua里面运行的,因为我不会lua所以只能用python来转,请问有没有这一类的库。
{
"B": {
"Level": true,
"ID": 772,
"tLevel": 2,
"Type": 1,
},
}
转成这样
{["B"]={["Level"]=true,["ID"]=772,["TLevel"]=2,["Type"]=1,}}
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
小伙看你根骨奇佳,潜力无限,来学PHP伐。