Python JSON 다루기

Jmnote (토론 | 기여)님의 2020년 1월 12일 (일) 13:58 판 (새 문서: ==개요== ;Python JSON 다루기 ;파이썬 JSON 처리 <source lang='python'> import json x = '{"name":"홍길동", "age":88, "hello": true}' y = json.loads(x) print(y) # {'name':...)
(차이) ← 이전 판 | 최신판 (차이) | 다음 판 → (차이)

1 개요

Python JSON 다루기
파이썬 JSON 처리
import json
x = '{"name":"홍길동", "age":88, "hello": true}'
y = json.loads(x)
print(y)
# {'name': '홍길동', 'age': 88, 'hello': True}
print(y['age'])
# 88

2 같이 보기

3 참고

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}