python中 image.point(table,'1')不明白table具体怎么运行的

我想知道如下问题:
1.image.point(table,'1')中,table的列表元素是256个值,都是一些0,1在里面,那么转二值化图的时候,是怎么和每个灰色元素对比的。
2.如果换成 image.point(lambda x:x>threshold and 255,'1')这个我勉强理解,灰度值和阈值来对比然后0和1替换成二值化黑或者白。
—— 就是不理解table是怎么运转的,列表里面的每个值是如何替换灰度值里面的每个像素?
image = image.convert('L')
table = []
threshold = 120
for i in range(256):
if i < threshold:
table.append(0)
else:
table.append(1)
image = image.point(table,'1')
image.show()

这个是point函数的功能,具体怎么实现,你去找到这个point函数看看。