def choose():
file = pickAFile()
pic = makePicture(file)
return pic
def negative(pic):
for p in getPixels(pic):
setRed(p, 255 - getRed(p))
setGreen(p, 255 - getGreen(p))
setBlue(p, 255 - getBlue(p))
explore(pic)
def main():
choose()
negative(pic)
我收到此错误:
错误是:全局找不到图片名称。找不到本地或全局名称。在尝试以任何方式使用它之前,您需要定义函数或变量。请检查 C:\Users\nh_2109\Desktop\s 的第 15 行
帮忙?:D