使用requests 进行网络请求很简单,第一步,导入requests
import requests
r=requests.get('https://github.com/timeline.json')也可以传递参数:para = {'key1':'key1','key2':'key2'}r = requests.get('https://github.com/timeline.json',para)
使用requests 进行网络请求很简单,第一步,导入requests
import requests
r=requests.get('https://github.com/timeline.json')也可以传递参数:para = {'key1':'key1','key2':'key2'}r = requests.get('https://github.com/timeline.json',para)