def fetch_data(url): import json with request.urlopen(url) as f: return json.loads(f.read().decode('utf-8'))
Sign in to make a reply
遥望君山