Discuss / Python / 交作业

交作业

Topic source

gd83594394

#1 Created at ... [Delete] [Delete and Lock User]

交作业:

def fetch_data(url):
    with request.urlopen(URL) as f:
        data = f.read()
        return json.loads(data.decode('utf-8'))

  • 1

Reply