Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Go
- fastapi
- php
- webpack
- React
- SQL
- Machine Learning
- nginx
- Redux
- nodejs
- docker
- linux
- CentOS
- Node
- NCP
- Backbone.js
- Switch
- Babel
- deep learning
- laravel
- phpredis
- javascript
- AWS
- rabbitmq
- Redis
- 블레이드 템플릿
- mariadb
- For
- 기초 수학
- python
Archives
- Today
- Total
728x90
반응형
목록JSON (1)
개발일기

0. 준비단계 pip install json pip3 install json 파이썬 버전에 맞게 json라이브러리를 설치해준다. 1. import 선언 import json # json라이브러리를 가져온다. 2. json 문자열로 변환 - dumps() json.dumps() : Python의 객체를 JSON 문자열로 변환 def get_json(): json_result = {} json_result['test1'] = "python1" json_result['test2'] = "python2" json_result['test3'] = "python3" return json_result print(get_json()) json.dumps를 사용하지 않으면 파이썬 객체로 만들어 출력시킨다. def get..
프로그래밍 언어/Python
2021. 9. 16. 10:27
728x90
반응형