Discuss / Python / urllib 练习

urllib 练习

Topic source

遥望君山

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

  • 1

Reply