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写一个程序,总是异常退出,但是却没法用try..except来捕捉
由于没法发图片,所以把相关的信息打印出来
异常的信息大致如下:
python.exe遇到问题需要关闭。我们对此引起的不便表示抱歉 ......
我每次上传的文件读到的数据都不正确。2M 的图片读得10多K 。。哪位大侠可以帮帮我啊。
#!D:\ProgrammerTools\python26\python.exe
#encoding=utf-8
import cgitb
import os
cgitb.enable()
import cgi,urllib ......
发现python2.6
import httplib
conn=httplib.HTTPSConnection('x.x.x.x')
conn.request('','')
rd=conn.getresponse()
conn.close()
这样结束后会变成CLOSE_WAIT状态,我 ......
>>> x=-1
>>> if x>0:
print ('11')
>>> else:
SyntaxError: invalid syntax (<pyshell#20>, line 1)
网上搜的也是:
>>> x=int(input("Please ent ......
python的PIL库自带的方法只能进行矩形的切割,如果我有了一个多边形各个顶点的坐标,如何对现有的图片按照这个多边形进行切割呢?
不一定要用PIL库,任何能实现这个功能的方法都行。
图片切割的js不是很多吗?
......