[英]Read a json file using python
您需要 read() 根據以下內容將 json 導入到您的文件中:
with open('sample_tweets.json', "r") as input_file:
data = json.load(input_file.read())
我無法使用您的 json 文件驗證它,但這就是它適用於我的方式。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.