报错:‘function’ object is not subscriptable;原因是Hi是个匿名函数,应该用()而不是[],改成 即可。 像这种问题TypeError: ‘function’ object is not subscriptable
一般都是由于函数没加括号导致的;