青岛市长张新起简历,hejian,男子宿舍症候群
class entrydemo( frame ):
"""demonstrate entrys and event binding"""
chosenrange = 2
url_login="http://.../ipgw/ipgw.ipgw/"
uid = '' #用户名
password = '' # 密码
operation = '' # 操作
range = '2' # 范围
the_page = '' # web服务器返回页面
# 表单的input 值一定要记得填齐全
def login(self):
values = {
'uid' : self.uid,
'password' : self.password,
'operation' : self.operation,
'range' : self.range, # 1:国际 2:国内
'timeout':'0'
}
postdata = urllib.urlencode(values) # 表单值编码
req = urllib2.request(self.url_login, postdata) # 服务器请求
response = urllib2.urlopen(req)
self.the_page = response.read()
#print self.the_page
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!!
点击进行留言回复
相关文章:
-
-
-
-
-
python中def是做什么的
python使用def开始函数定义,紧接着是函数名,括号内部为函数的参数,内部为函数的 具体功能实现代码,如果想要函数有返回值, 在expressions中的逻...
[阅读全文]
-
-
-
-
-
-
网友评论