文章詳情頁
python將json轉(zhuǎn)成lua table
瀏覽:96日期:2022-07-04 13:13:23
問題描述
最近有一個業(yè)務(wù)是將json轉(zhuǎn)成lua table格式放到lua里面運行的,因為我不會lua所以只能用python來轉(zhuǎn),請問有沒有這一類的庫。
{ 'B': { 'Level': true, 'ID': 772, 'tLevel': 2, 'Type': 1, },}
轉(zhuǎn)成這樣
{['B']={['Level']=true,['ID']=772,['TLevel']=2,['Type']=1,}}
問題解答
回答1:http://blog.csdn.net/liangneo...
相關(guān)文章:
1. mysql - 新浪微博中的關(guān)注功能是如何設(shè)計表結(jié)構(gòu)的?2. angular.js - 關(guān)于$apply()3. MySQL數(shù)據(jù)庫中文亂碼的原因4. dockerfile - [docker build image失敗- npm install]5. angular.js使用$resource服務(wù)把數(shù)據(jù)存入mongodb的問題。6. 如何解決Centos下Docker服務(wù)啟動無響應(yīng),且輸入docker命令無響應(yīng)?7. nignx - docker內(nèi)nginx 80端口被占用8. angular.js - Ionic 集成crosswalk后生成的apk在android4.4.2上安裝失敗???9. android-studio - Android Studio 運行項目的時候一堆警告,跑步起來!?10. 我在centos容器里安裝docker,也就是在容器里安裝容器,報錯了?
排行榜

熱門標簽