#-*- coding:cp936 -*- """ os.walk() 函数声明:walk(top,topdown=True,onerror=None) 1>参数top表示需…
import requests import lxml import gevent from lxml import html import os from gevent impo…
python -m test.regrtest -j3
class Solution(object): def searchRange(self, nums, target): """ :type nums: List[int] :ty…
# -*- coding: UTF-8 -*- ''' 发送txt文本邮件 ''' import smtplib from email.mime.text import MIMET…
#!/usr/bin/env python #coding=utf-8 import os import time import random import re apks = […
# -*- coding:utf-8 -*- #制作者:archingB import urllib import urllib2 import re readme="按下回车键开…
#! /usr/bin/env python #coding=utf-8 # AQQ批量网站工具集之调用浏览器打开URL列表 # http://www.oschina.net/c…
n=1 a=range(1,201) x=len(a) while x>1: for i in a: if i%2**n!=0: a.remove(i) n+=1 x=len…
""" python正则取一列数中连续最长的奇数个数.py 题目来源http://www.oschina.net/code/snippet_2519674_52255 大费周折地使…
#-*- encoding= utf-8 -*- def insertsort(list): if list != None: if len(list) == 1: pass el…
#coding: utf-8 import sys import urllib import urllib2 from BeautifulSoup import Beautiful…
python通过mechanize模块实现不断刷新网页的功能