python实现自动登录的问题
想通过python post来实现自动登录新浪围脖已获得登录后页面的源码
但是仔细的看了下登录页面的源码
HTML code:
<body style=" background:#C4EFF4 url(http://simg.sinajs.cn/miniblog/images/common/login/zlogin3.jpg) no-repeat center 461px">
<div class="loginWarp">
<div class="warpB1"></div>
<div class="warpC">
<div class="loginMain">
<div class="loginMain2" id="login_form">
<table class="regTab"><tr><th>还没有新浪微博账号?</th><td class="regBg"><a href="http://t.sina.com.cn/reg.php">立即注册</a></td>
</tr></table>
<table class="loginTable">
<tr>
<th> </th>
<td class="yzm" id="errortip" style="color:red"></td>
</tr>
<tr>
<th>登录名:</th>
<td><div class="input_login"><input type="text" id="loginname" name="loginname" value="" tabindex="1" /></div></td>
</tr>
<tr>
<th>密码:</th>
<td><div class
相关问答:
刚接触,感觉功能比较强大,主要是粘合性好,可以有机结合其他语言。但不明白它主要应用于什么领域,主要做那方面的东东。开发ERP系统是否可行?
基本上什么都可以做
今天去看了一下,基本上什么 ......
已知Python 中:
s = unicode("测试", "gb2312")
s = u'\u6d4b\u8bd5'
print s
测试
在Delphi里面如何将\u6d4b\u8bd5这样的还原成Gb2312的汉字呢?
找到个方法
......
我每次上传的文件读到的数据都不正确。2M 的图片读得10多K 。。哪位大侠可以帮帮我啊。
#!D:\ProgrammerTools\python26\python.exe
#encoding=utf-8
import cgitb
import os
cgitb.enable()
import cgi,urllib ......
在list中添加一个类的局部变量 这样做是否合法 请看下面例子:
Python code:
class A():
def __init__( self ):
self.__a = 0
self.__b = 'hello'
def get_a( self ):
ret ......
feedparser导入这个包 读xml的title,link 都没问题 就是时间读取不出来
错误:
print d['feed']['%s lastBuildDate']
return UserDict.__getitem__(self, realkey)
KeyError: ' ......