SHOW:
|
|
- or go back to the newest paste.
1 | import json | |
2 | def actorDirGraph(filmfile): | |
3 | with open(filmfile, 'rU') as f: | |
4 | film = json.load(f) | |
5 | ||
6 | for k, v in film.items(): | |
7 | ||
8 | ||
9 | set_actors = set() | |
10 | for actor in v['ACTORS']: | |
11 | set_actors.add(actor) | |
12 | print set_actors | |
13 | ||
14 | - | actorDirGraph('file01_01_in.json') |
14 | + | actorDirGraph('prova.json') |