Python接口测试之get/post/put/delete(转载)
GET:!/usr/bin/env python-- coding:utf-8 --import urllib2 def get(): URL = ‘www.baidu.com’ #页面的地址 response = urllib2.urlopen(URL) #调用urllib2向服务器发送get请求 return response.read() #获取服务器返回的页
转载
2018-04-19 16:29:29 ·
810 阅读 ·
0 评论