import json
def fetch_data(url): with request.urlopen(url) as f: data = f.read() return json.loads(data)
Sign in to make a reply
云影夜风_843
import json
def fetch_data(url): with request.urlopen(url) as f: data = f.read() return json.loads(data)