不会写重试,我用了这么个方法来 作为重试机制: def web(self): time.sleep(5) i = 0 a = self.br.current_url print a while i < 10: self.br.back() if self.br.current_url == a: i...
分类:
其他好文 时间:
2014-08-18 16:12:22
阅读次数:
213
<?php
/**
*抽象工厂模式
*/
header("Content-type:text/html;charset=utf-8");
classblogAppPannel
{
functiongetPannel()
{
return‘这是博客频道页<br>‘;
}
}
abstractclasscommsManager
{
constPANNEL=1;
constLISTS=2;
constVIEW=3;
abstractfunctiongetHeadTex..
分类:
其他好文 时间:
2014-08-18 01:39:53
阅读次数:
214
常用的行内元素有:a、abbr、acronym、b、bdo、big、br、cite、code、dfn、em、font、i、img、input、kbd、label、q、s、samp、select、small、span、strike、strong、sub、sup、textarea、tt、u、var常用的...
分类:
其他好文 时间:
2014-08-15 19:13:49
阅读次数:
178
分情况讨论
#include
using namespace std;
int main()
{
long long h,a,b,k;
int kase=1;
while(scanf("%I64d%I64d%I64d%I64d",&h,&a,&b,&k)==4)
{
if(h==0&&a==0&&b==0&&k==0)
br...
分类:
其他好文 时间:
2014-08-15 10:43:58
阅读次数:
164
The Pilots Brothers' refrigerator
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 18576
Accepted: 7108
Special Judge
Description
The game “The Pilots...
分类:
其他好文 时间:
2014-08-14 14:19:08
阅读次数:
227
块级标签div ………………块级标签h1~h6 ………………标题ul (内含多个li)ol (内含多个li)dl (内含一个dt 多个dd)………………列表table(内含tr th td)……………………表格p…………………………………………段落br…………………………………………换行form……...
分类:
其他好文 时间:
2014-08-13 10:12:35
阅读次数:
179
#!/bin/bash
#description:Configrealserverloandapplynoarp
SNS_VIP=(
192.168.100.210
192.168.100.220
)
case"$1"in
start)
for((i=0;i<`echo${#SNS_VIP[*]}`;i++))
do
interface="lo:`echo${SNS_VIP[$i]}|awk-F.‘{print$4}‘`"
/sbin/ifconfig$interface${SNS_VIP[$i]}br..
分类:
其他好文 时间:
2014-08-12 17:37:45
阅读次数:
205
/** ???? * 两个时间相差距离多少天多少小时多少分多少秒? <br> ???? * 时间参数为 Unix时间戳 ???? * @param str1 时间参数 1 格式:1407132214 ???? * @param str2 时间参数 2 格式:1407132...
分类:
其他好文 时间:
2014-08-12 14:01:04
阅读次数:
217
好久不写博客了,自上次写到现在已经一年多了,写这东西其实坚持下来就好了,将自己学的东西一点点写出来成为日后的积累查阅的资料。最近不是特别忙,抽点时间学学移动开发。Android组件中常用的四大组件1.Activity2.Service服务 3.Content Provider内容提供者 4.Br.....
分类:
移动开发 时间:
2014-08-12 13:12:44
阅读次数:
322
git提交三步走git addgit commitgit push查看状态git status创建git文件初始化一个文件夹git init [--bare]#括号内可选,为接收提交git log #查看提交记录git clone ssh:// 下载projectgit checkout -br.....
分类:
其他好文 时间:
2014-08-11 20:26:22
阅读次数:
210