PYTHON
python2으로 json 파일 생성하기
2018. 6. 18. 08:24
아래와 같이 사용하면 그냥 json파일을 만들수 있다.
import json json_data = {"one":1, "two":2, "three":3} with open('someData.json', 'w') as one_file: json.dump(json_data, one_file) | cs |