def _dummy_count(arg): return 10 _function_ns['count'] = _dummy_count _xml = etree.Element('structure') print _xml.xpath('a:count()').
確定! 回上一頁