Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- Project
- java
- C++
- 코스닥
- 이웃한 칸
- java정리
- 코딩
- 코테
- 사물인터넷
- frontend
- 주가예측
- 프로그램
- 빅데이터
- 프로그래머스
- Python
- 프로그래밍
- 개발자
- 백준
- SNS
- 코딩테스트
- 자바독학
- 자바
- 모의 주식
- backend
- 자바정리
- 개인프로젝트
- 개발
- 코딩독학
- 풀스택프레임워크
- Reflex
Archives
- Today
- Total
Creative Code
Chapter14(json) 본문
import json
with open('study/json_example.json','r',encoding = 'utf8')as f:
contents = f.read()
json_data= json.loads(contents)
print(json_data['employees'])
dict_data = {'Name':'Zara','Age':7,'Class':'First'}
with open('study/data.json','w') as f:
json.dump(dict_data,f)
'코딩 study > python' 카테고리의 다른 글
페이지 정보 읽기 (0) | 2023.10.25 |
---|---|
url로 파일 다운받기 (0) | 2023.10.25 |
Chapter13(웹 스크래핑,다운로드) (0) | 2023.10.23 |
Chapter12(CSV,로그) (0) | 2023.10.23 |
Chapter11(예외처리,파일입출력) (0) | 2023.10.22 |