摘要:
#!/usr/bin/pythonimport sysimport Imagedef main(): if len(sys.argv) < 2: filename = '1.bmp' else: filename = sys.argv[1] im = Image.open(filename) im = im.convert('RGBA') x, y = im.size pixdata = im.load() for j in xrange(y): for i in xrange(x): i... 阅读全文