웹 크롤링 파이썬 9

import json
json_str = '[{"name":"tj", "age":"32"},{"name":"bomi", "age":"25"}]'json_obj = json.loads(json_str)

#print(json_obj[0])#print(json_obj[0]['name'])#print(json_obj[0]['age'])#print(json_obj[0:2])for student in json_obj:
    print(student['name']+","+student['age'])


tj,32
bomi,25
웹 크롤링 파이썬 9 웹 크롤링 파이썬 9 Reviewed by kukanuc on 2월 23, 2019 Rating: 5

댓글 없음:

Powered by Blogger.