-1
def mysterious(pic):
w =getWidth(pic)
h = getHeight(pic)
for y in range(1, h+1):
for x in range(1, w/2+1):
p1 = getPixel(pic, x, y)
p2 = getPixel(pic, w-x+1, h-y+1)
c1 = getColor(p1)
setColor(p1, getColor(p2))
setColor(p2, c1)
请格式化您的代码。 – 2014-09-13 02:22:51
你即将得到一个运行的句子。 – 2014-09-13 02:24:54