Discuss / Python / code

船长杰克

#1 Created at ... [Delete] [Delete and Lock User]
import json
def fetch_data(url):
    with request.urlopen(url) as f:
        return json.loads(f.read().decode('utf-8'))

  • 1

Reply