import json
file = open('C:/Users/87671/Desktop/cchinese_only.json',encoding='utf-8')#打开文件
tweets=[]
for line in file.readlines():#读取所有行
tweets.append(json.loads(line))
file.close()
#json.load()将json格式字符串转换为python的数据类型 解码过程
import json
file = open('C:/Users/87671/Desktop/cchinese_only.json',encoding='utf-8')#打开文件
tweets=[]
for line in file.readlines():#读取所有行
tweets.append(json.loads(line))
file.close()
#json.load()将json格式字符串转换为python的数据类型 解码过程