0
我想讀的鳴叫的JSON文件,但我不斷收到此錯誤Python的json.loads顯示ValueError異常:期待,分隔符:1號線
ValueError異常:期待,分隔符:行1列537(536焦)
Code:
import json
import pandas as pd
import matplotlib.pyplot as plt
import json
with open('/Users/Mustafa/desktop/tweets.json', 'r') as f:
line = f.readline() # read only the first tweet/line
tweet = json.loads(line) # load it as Python dict
print(json.dumps(tweet, indent=4)) # pretty-print
任何想法如何解決這個問題或什麼即時通訊做錯了?