Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Come leggere il file json

alessioclemente (19640 points)
19 67 153
in Programmare in python by (19.6k points)
Salve, come posso leggere il file json? Devo usare la libreria json?
407 views
closed

2 Answers

Best answer
andrea.sterbini (207940 points)
756 1270 2377
by (208k points)
selected by
madai ................. :)
alessioclemente (19640 points)
19 67 153
by (19.6k points)
Sorry, ero dubbioso perché pensavo non si potessero usare librerie >.<
alessioclemente (19640 points)
19 67 153
by (19.6k points)
E non avevo visto l'import json già scritto
_andrea_ (45670 points)
13 42 297
by (45.7k points)
Apri il file mettendolo in una variabile come nel secondo hw. Poi fai
qualcosa=json.load(variabile del file)
E ora puoi chiudere il file, avendo salvato il contenuto del json in una variabile qualsiasi