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
- rails
- Python
- odroid-x2
- java
- 오렌지파이
- mqtt
- Raspberry Pi 3
- IOT
- nano
- Server
- 개발환경
- ruby on rails
- uno
- RUBY
- 라즈베리파이
- BLE
- docker
- Beacon
- Android
- flask
- Raspberry Pi
- ubuntu
- Nginx
- python3
- orange pi
- dht11
- Arduino
- parser
- 아두이노
- STM32F4
Archives
- Today
- Total
목록JSON (2)
[熱情]
python json
python 3.5 import json sample_data = '{ "num" : 123, "name": "bbb", "phone": "01012345678", "email": "asdf@qwer@net" }' def json_parser(data): try: jdata = json.loads(sample_data) print("num : ", jdata["num"]) print("name : ", jdata["name"]) print("phone : ", jdata["phone"]) print("email : ", jdata["email"]) except(KeyError, TypeError, ValueError) as e: print("json parser error : ", e) if __name..
Programming/python
2017. 1. 24. 17:44