python "object is not subscriptable" 怎么解决
leno 2011-05-13 04:03:41 我有一句脚本如下:
xplatform = filter(lambda x:x.nodeName=="platformManifest", xml.dom.minidom.parse("platformManifest.xml").childNodes)[0]
执行是老是提示:
xplatform = filter(lambda x:x.nodeName=="platformManifest", xml.dom.minidom.parse("platformManifest.xml")..childNodes)[0]TypeError: 'filter' object is not subscriptable
各位大虾,帮帮忙看看怎么处理