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
相关问答:
python和pyqt以及Eric4都已经配置好了,打开Eric4写个python程序比如简单的
print“hello,world”,怎么编译运行了,Start菜单的所有命令都出现和图中差不多的对话框,应当怎么运行了?
求大家指教
没有人用 ......
s='aaa111aaa,bbb222,333ccc,444ddd444,555eee666,fff777ggg'
用正则表达式取出 前后字母相同的数据 结果如下:
111 ddd
谢谢~
Python code:
import re
s='aaa111aaa,bbb222,333ccc,444ddd444,555eee666,ff ......
大家好,我是一个新手,刚开始学python,但是刚开始的helloworld都没法打印,让我很无奈。
我的python安装路径为f:\python31。在path中也设置对了,在windows下运行是这样显示的,希望各位前辈指点一下。谢谢
Pyth ......
feedparser导入这个包 读xml的title,link 都没问题 就是时间读取不出来
错误:
print d['feed']['%s lastBuildDate']
return UserDict.__getitem__(self, realkey)
KeyError: ' ......
>>> x=-1
>>> if x>0:
print ('11')
>>> else:
SyntaxError: invalid syntax (<pyshell#20>, line 1)
网上搜的也是:
>>> x=int(input("Please ent ......