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 |
Tags
- BLE
- rails
- Raspberry Pi
- odroid-x2
- Arduino
- ubuntu
- RUBY
- docker
- 아두이노
- nano
- IOT
- flask
- Android
- 개발환경
- Python
- python3
- java
- Server
- Beacon
- Nginx
- dht11
- 오렌지파이
- ruby on rails
- parser
- STM32F4
- orange pi
- Raspberry Pi 3
- 라즈베리파이
- mqtt
- uno
Archives
- Today
- Total
목록parser (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