文章列表
import Image, ImageEnhance
def reduce_opacity(im, opacity):
"""Returns an image with reduced opacity."""
assert opacity >= 0 and opacity <= 1
if im.mode != 'RGBA':
im = im.convert('RGBA')
else:
im = im.copy()
alpha = i ...
import httplib,urllib2
import random
import time
i = 0
while 1:
a = random.random()
b = str(a)
url = 'http://page.vote.qq.com/survey.php?PjtID=2439626&SubjID=2493278&OptID=184964&fmt=json&result=0&rdm='+b+'05827'
httplib.HTTPConnection.debuglevel = 1
'''reque ...
from os import path
import os
jarLibsDir = r'D:\svn\radar\trunk\radar-psd\target\dependency'
output = 'JAR_ROOT=/data0/home/labnew/radar/psd\nLIB_PATH=$JAR_ROOT/dependency\nLIB_JARS=.'
for parent,dirnames,files in os.walk(jarLibsDir):
for f in files:
output += ':$LIB_PATH/' ...