GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — code_snippets/Python-JSON/json_demo.py at master · micey969/code_snippets Expand file tree/ Copy pathjson_demo.pyMore file actions 11 lines (8 loc) · 229 Bytes / Copy pathjson_demo.pyFile metadata and controls11 lines (8 loc) · 229 Bytes 1 2 3 4 5 6 7 8 9 10 11 ''' JavaScript Object Notation ''' import json with open('states.json') as f: data = json.load(f) for state in data['states']: del state['area_codes'] with open('new_states.json', 'w') as f: json.dump(data, f, indent=2) |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |