#-*-coding:utf8 -*-
import urllib
import urllib2
url='http:reg.haibian.com/login/ajax_login'
#定義請(qǐng)求數(shù)據(jù),并且對(duì)數(shù)據(jù)進(jìn)行賦值
data={}
data['loginname']='student08@qq.com'
data['password']='96e79218965eb72c92a549dd5a330112'
#對(duì)請(qǐng)求數(shù)據(jù)進(jìn)行編碼
data=urllib.urlencode(data)
import urllib
import urllib2
url='http:reg.haibian.com/login/ajax_login'
#定義請(qǐng)求數(shù)據(jù),并且對(duì)數(shù)據(jù)進(jìn)行賦值
data={}
data['loginname']='student08@qq.com'
data['password']='96e79218965eb72c92a549dd5a330112'
#對(duì)請(qǐng)求數(shù)據(jù)進(jìn)行編碼
data=urllib.urlencode(data)
2017-04-13
我在postman里輸入http://www.baidu.com后發(fā)送,選擇json為什么報(bào)錯(cuò)啊Unexpected '<'
2017-03-30
轉(zhuǎn)測(cè)試是為了不看代碼,可是,這卻讓我走進(jìn)代碼的世界,香菇~~~
2017-03-27