ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、视频、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
``` import json f = open('1.txt','r',encoding='utf-8') m = json.load(f) print(m) print(m['status']['code']) dict1 = {} dict1['status'] = {} dict1['status']['code'] = 0 dict1['status']['msg'] = None dict1['data'] = {} dict1['data']['otherLikeDoc'] = a = [] a.append({}) a[0]['doc_id']='f346' a[0]['title']='(完整版)python学习课件课件' a.append({}) a[1]['doc_id']='f780' a[1]['title']='(完整版)Python基础教程(自学记录)' print(dict1) ``` ``` import json f = open('2.txt','r',encoding='utf-8') m = json.load(f) print(m) ``` ``` import json f = open('3.txt','r',encoding='utf-8') m = json.load(f) print(m) ``` ``` import json f = open('4.txt','r',encoding='utf-8') m = json.load(f) print(m) ``` ``` dict1 = {} dict1['status'] = {} dict1['status']['code'] = 0 dict1['status']['msg'] = None print(dict1) ```