Untitled

 avatar
RonGut23
plain_text
21 days ago
273 B
2
Indexable
Never
import json
#  Criar ou ler JSON existente
usuario ="""{
    "name": "Ronaldo Kaizer",
    "age": 20,
    "city": "Paraná",
    "isStudent": true,
    "gpa":2.4
}"""
with open('Frio.json','w',encoding='utf-8') as arquivo_json:
    json.dump(usuario,arquivo_json)
Leave a Comment